

function setting_board()
{
	this.init=function(uid)
	{
		_createbox(uid);
		_bind();
	}


	var _createbox=function(uid)
	{
		if($("#setting_board_"+uid).length>0)
		{
			$("#setting_board_"+uid).css('display','block').trigger('click');
			return false;
		}

		var uset=usr.getpro(uid,'setting');
		console.log(uset);
		console.log(parseInt(uset['autologload']));

		var set_remindfrdstr='';
		var remindlist=$.trim(uset['frdolremind_list']);
		//console.log('remindlist'+remindlist);
		var remindlistarr=(remindlist=="clear"||remindlist.length<=0)?false:remindlist.split(';');
		//console.log('remindlistarr'+remindlistarr);
		if(remindlistarr)
		{
			for(var i=0;i<remindlistarr.length;i++)
			{
				var f=usr.getaother(uid,remindlistarr[i]);
				set_remindfrdstr+='<li name="setting_setolremindineedli_frd" fid="'+remindlistarr[i]+'"><div class="setting_frdhead"><img src="'+f.img30+'"/></div>'+(f.frdname==""?f.name:f.frdname)+'('+f.account+')'+'<div class="setting_delaremindfrd"></div></li>';
			}
		}





		$('body').append(
		'<div class="setting_board owner_'+uid+'" id="setting_board_'+uid+'">'+
		'<div class="setting_gary"></div>'+
		'<div class="setting_cntboard">'+
		'<div class="setting_bar">'+
		'<div class="bar_color theme_color_'+uid+' theme_op_'+uid+'"></div>'+
		'<div class="bar_content">'+
		'<div class="setting_barname"><img src="img/all_logo16-xp-2014.ico"/>系统设置</div>'+
		'<div class="setting_close"></div>'+
		'<div class="setting_mini"></div>'+
		'<div class="clear"></div>'+
		'</div></div>'+
		'<div class="setting_title">'+
		'<div class="basic_set basic_set_d setting_title_tag">基本设置</div>'+
		'<div class="sec_set sec_set_n setting_title_tag">安全设置</div>'+
		'<div class="auth_set auth_set_n setting_title_tag">权限设置</div>'+
		'</div>'+
		'<div class="setting_content_basic setting_content">'+
		'<div class="setting_list">'+
		'<ul>'+
		'<li class="setting_list_title setting_list_logset now">登录</li>'+
		'<li class="setting_list_title setting_list_mainboard">主面板</li>'+
		'<li class="setting_list_title setting_list_status">状态</li>'+
		'<li class="setting_list_title setting_list_chatframe">会话窗口</li>'+
		'<li class="setting_list_title setting_list_msgshow">信息展示</li>'+
		'<li class="setting_list_title setting_list_remind">提醒</li>'+
		'<li class="setting_list_title setting_list_hotkey">热键</li>'+
		'<li class="setting_list_title setting_list_sound">声音</li>'+
		'<li class="setting_list_title setting_list_softupdate">软件更新</li>'+
		'<li class="setting_list_title setting_list_fileman">文件管理</li>'+
		'<li class="setting_list_title setting_list_fileshare">文件共享</li>'+
		'<li class="setting_list_title setting_list_soundvideoconnect">音视频通话</li>'+
		'</ul>'+
		'</div>'+
		'<div class="setting_detail">'+
		'<div class="setting_detail_page">'+
		'<div class="setting_detail_list setting_detail_logset">'+
		'<p>登录:</p>'+
		'<ul>'+
		'<li class="setting_li setting_autologload"><div class="setting_ck '+(parseInt(uset['autologload'])==1?'checked':'')+'"></div>开机时自动启动QQ</li>'+
		'<li class="setting_li setting_autologopen"><div class="setting_ck '+(parseInt(uset['autologopen'])==1?'checked':'')+'"></div>启动QQ时为我自动登录</li>'+
		'<li class="setting_li setting_allwayslogtip"><div class="setting_ck '+(parseInt(uset['allwayslogtip'])==1?'checked':'')+'"></div>总是打开登录提示</li>'+
		'<li class="setting_li setting_logopenchat"><div class="setting_ck '+(parseInt(uset['logopenchat'])==1?'checked':'')+'"></div>登录后弹出上次未关闭会话</li>'+
		'<li class="disabled setting_logout2phoneqq"><div class="setting_ck '+(parseInt(uset['logout2phoneqq'])==1?'checked':'')+'"></div>离线是自动启动QQ手机版(仅支持AndroidQQ5.2及以上版本)</li>'+
		'<li class="setting_li setting_loginpet"><div class="setting_ck '+(parseInt(uset['loginpet'])==1?'checked':'')+'"></div>登录后自动运行QQ宠物</li>'+
		'<li class="setting_li setting_loginpapatips"><div class="setting_ck '+(parseInt(uset['loginpapatips'])==1?'checked':'')+'"></div>登录后显示拍拍待办事项提示</li>'+
		'<li class="setting_li setting_takeqqbuy"><div class="setting_ck '+(parseInt(uset['takeqqbuy'])==1?'checked':'')+'"></div>订阅"QQ网购每日精选",了解最新商品资讯</li>'+
		'</ul>'+
		'</div>'+
		'<div class="setting_detail_list setting_detail_mainboard">'+
		'<p>主面板:</p>'+
		'<ul>'+
		'<li class="setting_li setting_alwaystop"><div class="setting_ck '+(parseInt(uset['alwaystop'])==1?'checked':'')+'"></div>始终保持在其他窗口前端</li>'+
		'<li class="setting_li setting_autosidehide"><div class="setting_ck '+(parseInt(uset['autosidehide'])==1?'checked':'')+'"></div>停靠在桌面边缘时自动隐藏</li>'+
		'<li class="setting_li setting_showqqico2taskbar"><div class="setting_ck '+(parseInt(uset['showqqico2taskbar'])==1?'checked':'')+'"></div>在任务栏通知区域显示QQ图标</li>'+
		'<li class="setting_li setting_closemainboard">关闭主面板时:'+
		'<ul class="setting_radiolist setting_indent" name="setting_closemainboard">'+
		'<li><span class="setting_radiobtn '+(parseInt(uset['closemainboard'])==1?'radiochecked':'')+'" name="hide"></span>隐藏到任务栏通知区域,不退出程序</li>'+
		'<li><span class="setting_radiobtn '+(parseInt(uset['closemainboard'])==2?'radiochecked':'')+'" name="close"></span>退出程序</li>'+
		'</ul>'+
		'</li>'+
		'<li class="setting_li">您可以自由定制适合您的面板和功能，使用QQ更有效率'+
		'<div class="setting_btn_outline"><div class="setting_button setting_surfacemanager">界面管理器</div></div>'+
		'</li>'+
		'</ul>'+
		'</div>'+
		'<div class="setting_detail_list setting_detail_status">'+
		'<p>状态:</p>'+
		'<ul>'+
		'<li class="setting_li">登录后状态为:'+
		'<span class="setting_btn_inline	setting_select">'+
		'<select name="setting_loginstatus">'+
		'<option value="online" '+(parseInt(uset['loginstatus'])==1?'selected':'')+'>我在线上</option>'+
		'<option value="qme" '+(parseInt(uset['loginstatus'])==2?'selected':'')+'>Q我吧</option>'+
		'<option value="leave" '+(parseInt(uset['loginstatus'])==3?'selected':'')+'>离开</option>'+
		'<option value="busy" '+(parseInt(uset['loginstatus'])==4?'selected':'')+'>忙碌</option>'+
		'<option value="mute" '+(parseInt(uset['loginstatus'])==5?'selected':'')+'>请勿打扰</option>'+
		'<option value="invisible" '+(parseInt(uset['loginstatus'])==6?'selected':'')+'>隐身</option>'+
		'</select>'+
		'</span>'+
		'</li>'+
		'<li class="setting_li setting_changestatuswhenplay"><div class="setting_ck '+(parseInt(uset['changestatuswhenplay'])==1?'checked':'')+'"></div>运行全屏程序时切换至"忙碌"状态<p>仅在"Q我吧"和"我在线上"状态下生效。</p></li>'+
		'<li class="setting_li setting_changestatuswhenmousestop"><div class="setting_ck '+(parseInt(uset['changestatuswhenmousestop'])==1?'checked':'')+'"></div>鼠标无动作'+
		'<span class="setting_btn_inline">'+
		'<div class="setting_clickinput" name="setting_changestatuswhenmousestop_time">'+
		'<input type="text" value="'+parseInt(uset['changestatuswhenmousestop_time'])+'" name="changestatuswhenmousestopval"/>'+
		'<div class="updownclick">'+
		'<div class="upaddclick"><img src="img/scrollbar/arrow_up_normal.png"/></div>'+
		'<div class="downminusclick"><img src="img/scrollbar/arrow_down_normal.png"/></div>'+
		'</div>'+
		'</div>'+
		'</span>分钟后:'+
		'<div class="clear"></div>'+
		'<ul class="setting_radiolist setting_indent" name="setting_changestatuswhenmousestop_act">'+
		'<li><span class="setting_radiobtn'+(parseInt(uset['changestatuswhenmousestop_act'])==1?' radiochecked':'')+'" name="changestatus"></span>将状态切换至<span class="setting_btn_inline setting_select"><select name="setting_changestatuswhenmousestop_statustype"><option value="leave"'+(parseInt(uset['changestatuswhenmousestop_statustype'])==1?' selected':'')+'>离开</option>'+
		'<option value="busy"'+(parseInt(uset['changestatuswhenmousestop_statustype'])==2?' selected':'')+'>忙碌</option></select></span><div class="clear"></div></li>'+
		'<li><span class="setting_radiobtn'+(parseInt(uset['changestatuswhenmousestop_act'])==2?' radiochecked':'')+'" name="lockqq"></span>自动锁定QQ</li>'+
		'</ul>'+
		'</li>'+
		'<li class="setting_li setting_autoreply">'+
		'离开,忙碌,请勿打扰时自动回复(100字以内)'+
		'<div class="setting_btn_outline"><div class="setting_button setting_autoreplyset">自动回复设置</div><div class="setting_button setting_fastreplyset">快捷回复设置</div></div>'+
		'<div class="clear"></div>'+
		'</li>'+
		'</ul>'+
		'</div>'+
		'<div class="setting_detail_list setting_detail_chatframe">'+
		'<p>会话窗口:</p>'+
		'<ul>'+
		'<li class="setting_li setting_usechatbubble"><div class="setting_ck'+(parseInt(uset['usechatbubble'])==1?' checked':'')+'"></div>使用多彩气泡<span class="setting_btn_inline"><div class="setting_button setting_chatbubbleset">设置多彩气泡</div></span></li>'+
		'<li class="setting_li setting_closeadv"><div class="setting_ck'+(parseInt(uset['closeadv'])==1?' checked':'')+'"></div>不显示广告(会员设置项)&nbsp;&nbsp;&nbsp;<a href="http://kf.qq.com/faq/120313RRj6Bv130916BJ77FB.html" target="_blank">可屏蔽哪些广告?</a></li>'+
		'<li class="setting_li setting_allowautoopenchat"><div class="setting_ck'+(parseInt(uset['allowautoopenchat'])==1?' checked':'')+'"></div>允许来消息时自动弹出窗口</li>'+
		'<li class="setting_li setting_allowautoplaymagicface"><div class="setting_ck'+(parseInt(uset['allowautoplaymagicface'])==1?' checked':'')+'"></div>允许自动播放魔法表情和超级表情</li>'+
		'<li class="setting_li setting_allowqqshowface"><div class="setting_ck'+(parseInt(uset['allowqqshowface'])==1?' checked':'')+'"></div>允许使用QQ秀聊天随动表情</li>'+
		'<li class="setting_li setting_allwaysshowchatright"><div class="setting_ck'+(parseInt(uset['allwaysshowchatright'])==1?' checked':'')+'"></div>总是显示好友聊天窗口侧边栏</li>'+
		'<li class="setting_li setting_allowchatshake"><div class="setting_ck'+(parseInt(uset['allowchatshake'])==1?' checked':'')+'"></div>允许接受窗口抖动</li>'+
		'<li class="setting_li setting_showhotkeytips"><div class="setting_ck'+(parseInt(uset['showhotkeytips'])==1?' checked':'')+'"></div>显示热词搜索提示</li>'+
		'<li class="setting_li setting_showmsglog"><div class="setting_ck'+(parseInt(uset['showmsglog'])==1?' checked':'')+'"></div>显示历史消息记录</li>'+
		'<li class="setting_li setting_mergechatframe"><div class="setting_ck'+(parseInt(uset['mergechatframe'])==1?' checked':'')+'"></div>合拼会话窗口</li>'+
		'</ul>'+
		'</div>'+
		'<div class="setting_detail_list setting_detail_msgshow">'+
		'<p>信息展示:</p>'+
		'<ul>'+
		'<li class="setting_li setting_showico2card"><div class="setting_ck'+(parseInt(uset['showico2card'])==1?' checked':'')+'"></div>在迷你资料卡上显示业务图标</li>'+
		'<li class="setting_li setting_shownew2card"><div class="setting_ck'+(parseInt(uset['shownew2card'])==1?' checked':'')+'"></div>在迷你资料卡上显示更新摘要</li>'+
		'<li class="setting_li setting_showfrdnew2chatframe"><div class="setting_ck'+(parseInt(uset['showfrdnew2chatframe'])==1?' checked':'')+'"></div>在聊天窗口内展示好友的更新摘要</li>'+
		'</ul>'+
		'</div>'+
		'<div class="setting_detail_list setting_detail_remind">'+
		'<p>提醒:</p>'+
		'<ul>'+
		'<li class="setting_li setting_sessionremind"><div class="setting_ck'+(parseInt(uset['sessionremind'])==1?' checked':'')+'"></div>会话消息提醒</li>'+
		'<li class="setting_li setting_mailremind"><div class="setting_ck'+(parseInt(uset['mailremind'])==1?' checked':'')+'"></div>新邮件提醒</p></li>'+
		'<li class="setting_li setting_tencentwifiremind"><div class="setting_ck'+(parseInt(uset['tencentwifiremind'])==1?' checked':'')+'"></div>腾讯wifi设备插入自动检测</li>'+
		'<li class="setting_li setting_androidconnectremind"><div class="setting_ck'+(parseInt(uset['androidconnectremind'])==1?' checked':'')+'"></div>安卓设备连接提醒<p>当插入安卓设备时，提示安装或更新QQ手机版</p></li>'+
		'<li class="setting_li">您可以设置是否在屏幕右下角收到来自QQ空间的通知&nbsp;,&nbsp;<a href="javascript:;" target="_blank">进入设置</a>。</li>'+
		'<li class="setting_li setting_frdolremind">好友上线提醒'+
		'<ul class="setting_radiolist setting_frdolremind_select" name="setting_frdolremind">'+
		'<li><span class="setting_radiobtn'+(parseInt(uset['frdolremind'])==1?' radiochecked':'')+'" name="closeall"></span>关闭好友上线提醒</li>'+
		'<li><span class="setting_radiobtn'+(parseInt(uset['frdolremind'])==2?' radiochecked':'')+'" name="openall"></span>全部好友上线提醒</li>'+
		'<li><span class="setting_radiobtn'+(parseInt(uset['frdolremind'])==3?' radiochecked':'')+'" name="setpart"></span>以下好友上线提醒'+
		'<div class="setting_setolremindineedli" '+(parseInt(uset['frdolremind'])==3?'style="display:block;"':'')+'><div class="setting_setolremindineed theme_color_'+uid+'"><div class="setting_setolremindineedglass"></div><div class="setting_setolremindineedcnt">'+
		'<ul class="setting_setolremindineedpage">'+

		

		set_remindfrdstr+





		
		'</ul>'+
		'</div></div><div class="setting_button setting_addonlineremindfrd">添加<div class="clear"></div></div></div></li>'+
		'</ul></ul>'+
		'</div>'+
		'<div class="setting_detail_list setting_detail_hotkey">'+
		'<p>热键:</p>'+
		'<ul>'+
		'<li class="setting_li">您可以通过点击选择要更改的热键<div class="setting_btn_outline"><div class="setting_disablebtn setting_hotkeyset">设置热键</div></div><div class="clear"></div></li>'+
		'</ul>'+
		'</div>'+
		'<div class="setting_detail_list setting_detail_sound">'+
		'<p>声音:</p>'+
		'<ul>'+
		'<li class="setting_li setting_closesound"><div class="setting_ck'+(parseInt(uset['closesound'])==1?' checked':'')+'"></div>关闭所有声音<div class="setting_btn_outline"><div class="setting_button setting_tipsoundset">设置提示音</div></div><div class="clear"></div></li>'+
		'</ul>'+
		'</div>'+
		'<div class="setting_detail_list setting_detail_softupdate">'+
		'<p>软件更新:</p>'+
		'<ul>'+
		'<li class="setting_li">您可以选择本台计算机上QQ的更新方式</li>'+
		'<li class="setting_li setting_updatetype">'+
		'<ul class="setting_radiolist setting_updatetype_select" name="setting_updatetype">'+
		'<li><span class="setting_radiobtn'+(parseInt(uset['updatetype'])==1?' radiochecked':'')+'" name="auto"></span>有更新时自动为我安装(推荐)<p>当QQ有更新时，只能选择最佳的软件更新方案,自动完成更新的下载与安装，省心省力</p></li>'+
		'<li><span class="setting_radiobtn'+(parseInt(uset['updatetype'])==2?' radiochecked':'')+'" name="remind"></span>有更新时不要安装，但提醒我<p>此方式不影响安全补丁等重要更新的自动安装</p></li>'+
		'</ul>'+
		'</li>'+
		'</ul>'+
		'</div>'+
		'<div class="setting_detail_list setting_detail_fileman">'+
		'<p>文件管理:</p>'+
		'<ul>'+
		'<li class="setting_li">默认把接收到的文件保存到此文件夹中:</li>'+
		'<li class="setting_li setting_recivedir">'+
		'<input type="text" name="setting_recivesavedir" class="setting_recivesavedir" value="'+uset['recivedir']+'"/>'+
		'<div class="setting_btn_outline"><div class="setting_button setting_changerecivedir">更改目录</div><div class="setting_button setting_openrecivedir">打开文件夹</div></div>'+
		'<div class="clear"></div>'+
		'</li>'+
		'<li class="setting_li setting_allowrecivefasttranfile"><div class="setting_ck'+(parseInt(uset['allowrecivefasttranfile'])==1?' checked':'')+'"></div>允许接收通过秒传发送的文件<p>秒传发送的文件，将使用极速服务器辅助接收，能提高文件传输速度，缩短传输时间。</p></li>'+
		'<li class="setting_li setting_msgsavedir">选择个人文件夹(用于保存消息记录等数据)的保存位置'+







		'<ul class="setting_radiolist setting_msgsavedir_select" name="setting_msgsavedir">'+
		'<li class="disabled"><span class="setting_radiobtn'+(parseInt(uset['msgsavedir'])==1?' radiochecked':'')+'" name="unstalldir"></span>保存到安装目录下(Vista,Windows 7或更高的版本不支持此选项)</li>'+
		'<li><span class="setting_radiobtn'+(parseInt(uset['msgsavedir'])==2?' radiochecked':'')+'" name="mydir"></span>保存到"我的文档"(推荐)</li>'+
		'<li><span class="setting_radiobtn'+(parseInt(uset['msgsavedir'])==3?' radiochecked':'')+'" name="diydir"></span>自定义'+
		'<div class="setting_btn_outline setting_msgsavedir_diy"  '+(parseInt(uset['msgsavedir'])==3?'style="display:block;"':'')+'><input type="text" class="setting_msgsavedir_input" /><div class="setting_button">浏览</div></div>'+
		'<div class="clear"></div>'+
		'</li>'+
		'</ul>'+
		'<div class="setting_btn_outline"><div class="setting_button setting_openmsgsavedir">打开个人文件夹</div>'+
		'<div class="clear"></div>'+
		'</li>'+
		'<li class="setting_li">定期进行<a href="javascript:;">文件清理</a>可以有效节省硬盘空间。<span class="setting_btn_inline"><div class="setting_button setting_cleanmsgsavedir">前去清理</div></span></li>'+
		'<li class="setting_li setting_remindcleanrecivedir"><div class="setting_ck'+(parseInt(uset['remindcleanrecivedir'])==1?' checked':'')+'"></div>当个人文件夹大小超过'+
		'<span class="setting_btn_inline">'+
		'<div class="setting_clickinput" name="setting_remindcleanrecivedir_num">'+
		'<input type="text" value="'+parseInt(uset['remindcleanrecivedir_num'])+'" name="changestatuswhenmousestopval"/>'+
		'<div class="updownclick">'+
		'<div class="upaddclick"><img src="img/scrollbar/arrow_up_normal.png"/></div>'+
		'<div class="downminusclick"><img src="img/scrollbar/arrow_down_normal.png"/></div>'+
		'</div>'+
		'</div>'+
		'</span>MB时，提醒我清理</li>'+
		'<li class="setting_li setting_addsendbtn2contextmenu"><div class="setting_ck'+(parseInt(uset['addsendbtn2contextmenu'])==1?' checked':'')+'"></div>在系统右键菜单增加"通过QQ发送到我的手机及好友"选项</li>'+	
		'</ul>'+
		'</div>'+
		'<div class="setting_detail_list setting_detail_fileshare">'+
		'<p>文件共享:</p>'+
		'<ul>'+
		'<li class="setting_li setting_fileshareset">'+
		'<ul class="setting_radiolist setting_fileshareset_select" name="setting_fileshareset">'+
		'<li><span class="setting_radiobtn'+(parseInt(uset['fileshareset'])==1?' radiochecked':'')+'" name="open"></span>开启文件共享功能</li>'+
		'<li><span class="setting_radiobtn'+(parseInt(uset['fileshareset'])==2?' radiochecked':'')+'" name="closeone"></span>禁用文件共享功能(仅本次登录期间生效)</li>'+
		'<li><span class="setting_radiobtn'+(parseInt(uset['fileshareset'])==3?' radiochecked':'')+'" name="close"></span>禁用文件共享功能</li>'+
		'</ul>'+
		'</li>'+
		'<li class="setting_li setting_neverreciveshareremind"><div class="setting_ck'+(parseInt(uset['neverreciveshareremind'])==1?' checked':'')+'"></div>不再接收文件共享提醒</li>'+
		'</ul>'+
		'<div class="clear"></div>'+
		'</div>'+
		'<div class="setting_detail_list setting_detail_soundvideoconnect">'+
		'<p>音视频通话:</p>'+
		'<ul>'+
		'<!---<li class="setting_li">麦克风:<span class="setting_btn_inline setting_select"><select></select></span></li>'+
		'<li class="setting_li">音量:</li>'+
		'<li class="setting_li"><span class="setting_radiobtn"></span>自动调节麦克风音量</li>'+
		'<li class="setting_li"><p>请点麦克风测试，对着麦克风说话进行试听</p><div class="setting_button">麦克风测试</div>'+
		'<div class="clear"></div>'+
		'</li>'+
		'<li class="setting_li"></li>'+
		'<li class="setting_li">扬声器:<span class="setting_btn_inline setting_select"><select></select></span></li>'+
		'<li class="setting_li">音量:</li>'+
		'<li class="setting_li"><p>请点麦克风测试，对着麦克风说话进行试听</p><div class="setting_button">播放测试声音</div>'+
		'<div class="clear"></div>'+
		'</li>'+
		'<li class="setting_li">摄像头:<span class="setting_btn_inline setting_select"><select></select></span></li>'+
		'<li class="setting_li"></li>'+
		'<li class="setting_li"></li>'+
		'-->'+
		'<li class="setting_build">正在建设中...</li>'+
		'</ul>'+
		'</div>'+
		'</div><!--page结束-->'+
		'</div><!--content结束-->'+
		'<!---进度条---->'+
		'<div class="setting_scroll">'+
		'<div class="setting_topstep"><div class="setting_topstepbtn"></div></div>'+
		'<div class="setting_scrollbar"><div class="setting_scrollblock"></div></div>'+
		'<div class="setting_bottomstep"><div class="setting_bottomstepbtn"></div></div>'+
		'</div><!---进度条结束---->'+
		'</div>'+
		'<div class="setting_content_sec setting_content">'+
		'<div class="setting_list">'+
		'<ul>'+
		'<li class="setting_list_title setting_list_pwdset now">密码</li>'+
		'<li class="setting_list_title setting_list_qqlock">QQ锁</li>'+
		'<li class="setting_list_title setting_list_msglog">消息记录</li>'+
		'<li class="setting_list_title setting_list_saferecommend">安全推荐</li>'+
		'<li class="setting_list_title setting_list_safeupdate">安全更新</li>'+
		'<li class="setting_list_title setting_list_safedef">安全防护</li>'+
		'<li class="setting_list_title setting_list_filetran">文件传输</li>'+
		'</ul>'+
		'</div>'+
		'<div class="setting_detail">'+
		'<div class="setting_detail_page">'+
		'<div class="setting_detail_list setting_detail_pwdset">'+
		'<p>密码:</p>'+
		'<ul>'+
		'<li class="setting_li">您设置了记住密码，登录时无需再输入<div class="setting_btn_outline"><div class="setting_disablebtn setting_cancelrememberpwd">取消记住密码</div></div><div class="clear"></div></li>'+
		'<li class="setting_li">为了您的账号安全，请定期修改密码并申请密码保护<div class="setting_btn_outline"><div class="setting_button setting_modifypwd">修改密码</div><div class="setting_button setting_applypwdpro">申请密码保护</div></div><div class="clear"></div></li>'+
		'<li class="setting_li">某些服务将用到独立密码<div class="setting_btn_outline"><div class="setting_button setting_independentpwdman">管理独立密码</div></div><div class="clear"></div></li>'+
		'</ul>'+
		'</div>'+
		'<div class="setting_detail_list setting_detail_qqlock">'+
		'<p>QQ锁:</p>'+
		'<ul>'+
		'<li class="setting_li setting_qqlockset">'+
		'<ul class="setting_radiolist setting_qqlockset_select" name="setting_qqlockset">'+
		'<li><span class="setting_radiobtn'+(parseInt(uset['qqlockset'])==1?' radiochecked':'')+'" name="useqqpwd"></span>使用QQ密码解锁QQ锁</li>'+
		'<li><span class="setting_radiobtn'+(parseInt(uset['qqlockset'])==2?' radiochecked':'')+'" name="useotherpwd"></span>使用独立密码解锁QQ锁(QQ密码也可解锁)</li>'+
		'</ul>'+
		'</li>'+
		'<li class="setting_li"><div class="setting_btn_outline"><div class="setting_button setting_modifyhotkey">更改热键</div><div class="setting_button setting_autolockset">自动锁定设置</div></div><div class="clear"></div></li>'+
		'</ul>'+
		'</div>'+
		'<div class="setting_detail_list setting_detail_msglog">'+
		'<p>消息记录:</p>'+
		'<ul>'+
		'<li class="setting_li setting_synchchatlog"><div class="setting_ck'+(parseInt(uset['synchchatlog'])==1?' checked':'')+'"></div>登录QQ时同步最近聊天记录</li>'+
		'<li class="setting_li setting_delchatlog"><div class="setting_ck'+(parseInt(uset['delchatlog'])==1?' checked':'')+'"></div>退出QQ时自动删除所有消息记录</li>'+
		'<li class="setting_li">如果您需要删除某个人或者某个群的消息记录，请使用消息管理器<div class="setting_btn_outline"><div class="setting_button setting_openmsglogman">打开消息管理器</div></div><div class="clear"></div></li>'+
		'<li class="setting_li">您可以对全部消息记录按时间段删除<div class="setting_btn_outline"><div class="setting_button setting_deletemsglog">删除消息记录</div></div><div class="clear"></div></li>'+
		'<li class="setting_li setting_encryptmsg"><div class="setting_ck'+(parseInt(uset['encryptmsg'])==1?' checked':'')+'"></div>启用消息记录加密</li>'+
		'</ul>'+
		'</div>'+
		'<div class="setting_detail_list setting_detail_saferecommend">'+
		'<p>安全推荐:</p>'+
		'<ul>'+
		'<li class="disabled setting_openlinkonqqbrowser"><div class="setting_ck'+(parseInt(uset['openlinkonqqbrowser'])==1?' checked':'')+'"></div>使用QQ浏览器打开QQ中的连接</li>'+
		'<li class="setting_li">建议<a href="javascript:;">安装QQ浏览器</a>，增强访问网络的安全性</li>'+
		'</ul>'+
		'</div>'+
		'<div class="setting_detail_list setting_detail_safeupdate">'+
		'<p>安全更新:</p>'+
		'<ul>'+
		'<li class="setting_li setting_safeupdateset">安全模块及时更新，可保障您的QQ使用安全'+
		'<ul class="setting_radiolist setting_safeupdateset_select" name="safeupdateset">'+
		'<li><span class="setting_radiobtn'+(parseInt(uset['safeupdateset'])==1?' radiochecked':'')+'" name="auto"></span>有安全更新时自动为我安装，无需提醒(推荐)</li>'+
		'<li><span class="setting_radiobtn'+(parseInt(uset['safeupdateset'])==2?' radiochecked':'')+'" name="remind"></span>有安全更新时提醒我，不自动安装</li>'+
		'</ul>'+
		'</li>'+
		'</ul>'+
		'</div>'+
		'<div class="setting_detail_list setting_detail_safedef">'+
		'<p>安全防护:</p>'+
		'<ul>'+
		'<li class="setting_li setting_antiphish">浏览器防钓鱼功能，为您有效拦截恶意钓鱼盗号网站'+
		'<ul class="setting_radiolist setting_antiphish_select" name="setting_antiphish">'+
		'<li><span class="setting_radiobtn'+(parseInt(uset['antiphish'])==1?' radiochecked':'')+'" name="open"></span>启用(暂支持IE)</li>'+
		'<li><span class="setting_radiobtn'+(parseInt(uset['antiphish'])==2?' radiochecked':'')+'" name="close"></span>禁用</li>'+
		'</ul>'+
		'</li>'+
		'</ul>'+
		'</div>'+
		'<div class="setting_detail_list setting_detail_filetran">'+
		'<p>文件传输:</p>'+
		'<ul>'+
		'<li class="setting_li setting_filetranset">'+
		'<ul class="setting_radiolist setting_filetranset_select" name="setting_filetranset">'+
		'<li><span class="setting_radiobtn'+(parseInt(uset['filetranset'])==1?' radiochecked':'')+'" name="hight"></span>安全级-高<p>阻止接收任何文件</p></li>'+
		'<li><span class="setting_radiobtn'+(parseInt(uset['filetranset'])==2?' radiochecked':'')+'" name="medium"></span>安全级-中(推荐)<p>阻止接收高安全风险文件(少数常用类型的文件除外)。</p></li>'+
		'<li><span class="setting_radiobtn'+(parseInt(uset['filetranset'])==3?' radiochecked':'')+'" name="low"></span>安全级-低<p>允许接受任何文件</p></li>'+
		'</ul>'+
		'</li>'+
		'</ul>'+
		'</div>'+
		'</div><!---page结束-->'+
		'</div><!--content结束--->'+
		'<!---进度条---->'+
		'<div class="setting_scroll">'+
		'<div class="setting_topstep"><div class="setting_topstepbtn"></div></div>'+
		'<div class="setting_scrollbar"><div class="setting_scrollblock"></div></div>'+
		'<div class="setting_bottomstep"><div class="setting_bottomstepbtn"></div></div>'+
		'</div><!---进度条结束---->'+
		'</div>'+
		'<div class="setting_content_auth setting_content">'+
		'<div class="setting_list">'+
		'<ul>'+
		'<li class="setting_list_title setting_list_persondata now">个人资料</li>'+
		'<li class="setting_list_title setting_list_zoneauth">空间权限</li>'+
		'<li class="setting_list_title setting_list_antihara">防骚扰</li>'+
		'<li class="setting_list_title setting_list_tempchat">临时会话</li>'+
		'<li class="setting_list_title setting_list_inforemind">资讯提醒</li>'+
		'<li class="setting_list_title setting_list_personstatus">个人状态</li>'+
		'<li class="setting_list_title setting_list_remotedesk">远程桌面</li>'+
		'</ul>'+
		'</div>'+
		'<div class="setting_detail">'+
		'<div class="setting_detail_page">'+
		'<div class="setting_detail_list setting_detail_persondata">'+
		'<p>个人资料:</p>'+
		'<ul>'+
		'<li class="setting_li">您可以设置谁可以查看您的个人资料<div class="setting_btn_outline"><div class="setting_button setting_authset">权限设置</div></div><div class="clear"></div></li>'+
		'</ul>'+
		'</div>'+
		'<div class="setting_detail_list setting_detail_zoneauth">'+
		'<p>空间权限:</p>'+
		'<ul>'+
		'<li class="setting_li">请选择QQ空间访问范围:'+
		'<span class="setting_btn_inline	setting_select"><select name="setting_zoneaccess">'+
		'<option value="all"'+(parseInt(uset['zoneaccess'])==1?' selected':'')+'>对所有人开放</option>'+
		'<option value="part"'+(parseInt(uset['zoneaccess'])==2?' selected':'')+'>对部分人开放</option>'+
		'<option value="self"'+(parseInt(uset['zoneaccess'])==3?' selected':'')+'>仅对自己开放</option>'+
		'</select></span>'+
		'<div class="clear"></div>'+
		'<font color="red">此项设置详情需要去QQ空间查看修改</font>&nbsp;&nbsp;&nbsp;<a href="">立即查看</a>'+
		'</li>'+
		'<li class="setting_li setting_showmynew"><div class="setting_ck'+(parseInt(uset['showmynew'])==1?' checked':'')+'"></div>将您QQ空间的自信日志，最新照片等显示在QQ上</li>'+
		'<li class="setting_li setting_synchsign"><div class="setting_ck'+(parseInt(uset['synchsign'])==1?' checked':'')+'"></div>更新说说时同步更新QQ签名</li>'+
		'<li class="setting_li setting_reprintremind"><div class="setting_ck'+(parseInt(uset['reprintremind'])==1?' checked':'')+'"></div>您的日志被转载了，用QQ消息通知您</li>'+
		'<li class="setting_li setting_newcommentremind"><div class="setting_ck'+(parseInt(uset['newcommentremind'])==1?' checked':'')+'"></div>您的空间有了新留言或评论等，用QQ消息通知您</li>'+
		'<li class="setting_li setting_recentapp"><div class="setting_ck'+(parseInt(uset['recentapp'])==1?' checked':'')+'"></div>在QQ上显示最近玩过的应用</li>'+
		'<li class="setting_li"><a href="">去QQ空间设置更多>> </a></li>'+
		'</ul>'+
		'</div>'+
		'<div class="setting_detail_list setting_detail_antihara">'+
		'<p>防骚扰:</p>'+
		'<ul>'+
		'<li class="setting_li">请选择允许别人查找到您的方式:</li>'+
		'<li class="setting_li setting_findmebyvideo"><div class="setting_ck'+(parseInt(uset['findmebyvideo'])==1?' checked':'')+'"></div>通过查找视频用户列表找到我</li>'+
		'<li class="setting_li setting_findmebyaccountonly"><div class="setting_ck'+(parseInt(uset['findmebyaccountonly'])==1?' checked':'')+'"></div>只能通过账号或昵称找到我</li>'+
		'<li class="setting_li setting_notallowrecommendme"><div class="setting_ck'+(parseInt(uset['notallowrecommendme'])==1?' checked':'')+'"></div>不允许将我推荐给可能认识的人，同时也不向我推荐可能认识的人</li>'+
		'<li class="setting_li setting_addvalidate">请选择适合您的验证方式:'+
		'<ul class="setting_radiolist setting_addvalidate_select" name="addvalidate">'+
		'<li><span class="setting_radiobtn'+(parseInt(uset['addvalidate'])==1?' radiochecked':'')+'" name="allowall"></span>允许任何人</li>'+
		'<li><span class="setting_radiobtn'+(parseInt(uset['addvalidate'])==2?' radiochecked':'')+'" name="valmsg"></span>需要验证信息</li>'+
		'<li><span class="setting_radiobtn'+(parseInt(uset['addvalidate'])==3?' radiochecked':'')+'" name="answer"></span>需要回答正确问题</li>'+
		'<li><span class="setting_radiobtn'+(parseInt(uset['addvalidate'])==4?' radiochecked':'')+'" name="answer&confirm"></span>需要回答问题并由我确认</li>'+
		'</ul>'+
		'</li>'+
		'</ul>'+
		'</div>'+
		'<div class="setting_detail_list setting_detail_tempchat">'+
		'<p>临时会话:</p>'+
		'<ul>'+
		'<li class="setting_li setting_notaccepttempchat"><div class="setting_ck'+(parseInt(uset['notaccepttempchat'])==1?' checked':'')+'"></div>不接收任何临时会话消息</li>'+
		'<li class="setting_li"><div class="setting_btn_outline"><div class="setting_button setting_shieldcontactman">屏蔽联系人管理</div><div class="setting_button setting_shieldsessiontman">屏蔽会话管理</div></div><div class="clear"></div></li>'+
		'</ul>'+
		'</div>'+
		'<div class="setting_detail_list setting_detail_inforemind">'+
		'<p>资讯提醒:</p>'+
		'<ul>'+
		'<li class="setting_li setting_inforemindset"><div class="setting_ck'+(parseInt(uset['inforemindset'])==1?' checked':'')+'"></div>登录后显示"腾讯网迷你版"</li>'+
		'</ul>'+
		'</div>'+
		'<div class="setting_detail_list setting_detail_personstatus">'+
		'<p>个人状态:</p>'+
		'<ul>'+
		'<li class="setting_li">您将向好友展示以下选中的信息:</li>'+
		'<li class="setting_li setting_showmyinput"><div class="setting_ck'+(parseInt(uset['showmyinput'])==1?' checked':'')+'"></div>我的输入状态</li>'+
		'<li class="setting_li setting_showmyplace_wheater"><div class="setting_ck'+(parseInt(uset['showmyplace_wheater'])==1?' checked':'')+'"></div>我的地理位置及天气</li>'+
		'<li class="setting_li setting_showmyqqmusic"><div class="setting_ck'+(parseInt(uset['showmyqqmusic'])==1?' checked':'')+'"></div>我正在播放的QQ音乐</li>'+
		'<li class="setting_li setting_showmyqqgame"><div class="setting_ck'+(parseInt(uset['showmyqqgame'])==1?' checked':'')+'"></div>我正在玩的QQ游戏</li>'+
		'<li class="setting_li setting_showmyothergame"><div class="setting_ck'+(parseInt(uset['showmyothergame'])==1?' checked':'')+'"></div>我正在玩的其他游戏</li>'+
		'<li class="setting_li setting_showmypet"><div class="setting_ck'+(parseInt(uset['showmypet'])==1?' checked':'')+'"></div>我正在玩的QQ宠物</li>'+
		'<li class="setting_li setting_showmyclass"><div class="setting_ck'+(parseInt(uset['showmyclass'])==1?' checked':'')+'"></div>在QQ上显示我的课程动态</li>'+
		'<li class="setting_li setting_showmycommonweal"><div class="setting_ck'+(parseInt(uset['showmycommonweal'])==1?' checked':'')+'"></div>我的公益活动更新</li>'+
		'</ul>'+
		'</div>'+
		'<div class="setting_detail_list setting_detail_remotedesk">'+
		'<p>远程桌面:</p>'+
		'<ul>'+
		'<li class="setting_li setting_allowremote"><div class="setting_ck'+(parseInt(uset['allowremote'])==1?' checked':'')+'"></div>允许远程桌面连接这台计算机</li>'+
		'<li class="setting_li setting_allowautoacceptremote"><div class="setting_ck'+(parseInt(uset['allowautoacceptremote'])==1?' checked':'')+'"></div>自动接收连接请求(建议您手动关闭Windows自动睡眠和自动锁屏功能)</li>'+
		'</ul>'+
		'</div>'+
		'</div><!---page结束-->'+
		'</div><!---content结束-->'+
		'<!---进度条---->'+
		'<div class="setting_scroll">'+
		'<div class="setting_topstep"><div class="setting_topstepbtn"></div></div>'+
		'<div class="setting_scrollbar"><div class="setting_scrollblock"></div></div>'+
		'<div class="setting_bottomstep"><div class="setting_bottomstepbtn"></div></div>'+
		'</div><!---进度条结束---->'+
		'</div>'+





		'<!--内子设置面板-->'+

		'<!---自动回复设置-->'+
		'<div class="setting_window setting_window_autorely">'+
		'<div class="setting_whiteglass"></div>'+
		'<div class="setting_subwin setting_autorely_subboard">'+
		'<div class="setting_subwincnt setting_autorely_subcntboard">'+
		'<div class="setting_subwinclose"></div>'+
		'<div class="setting_autorely_cntboard theme_color_'+uid+'">'+
		'<div class="setting_autorely_glass"></div>'+
		'<div class="setting_autorely_cnt">'+
		'<ul class="setting_autorely_cntpage">'+
		/*
		'<li class="setting_autorely_cntli">1<span class="autorely_cnt">您好，我现在有事不在，一会再和您联系。</span></li>'+
		'<li class="setting_autorely_cntli">2<span class="autorely_cnt">工作中，请勿打扰。</span></li>'+
		'<li class="setting_autorely_cntli selected">3<span class="autorely_cnt">我去吃饭了，一会再联系。</span></li>'+
		*/
		'</ul>'+
		'</div>'+
		/*
		'<div class="simplescrollframe">'+
		'<div class="scroll_topstep"><div class="scroll_topstepbtn"></div></div>'+
		'<div class="scrollbar"><div class="scrollblock"></div></div>'+
		'<div class="scroll_bottomstep"><div class="scroll_bottomstepbtn"></div></div>'+
		'</div>'+
		*/
		'</div>'+
		'<div class="setting_subbtnlist">'+
		'<div class="setting_button setting_addrelystr">添加</div>'+
		'<div class="setting_button setting_modifyrelystr">修改</div>'+
		'<div class="setting_button setting_delrelystr">删除</div>'+
		'</div>'+
		'<div class="clear"></div>'+
		'</div>'+
		'</div>'+
		'</div>'+


		'<!--快速回复设置-->'+
		'<div class="setting_window setting_window_fastreply">'+
		'<div class="setting_whiteglass"></div>'+
		'<div class="setting_subwin setting_fastreply_subboard">'+
		'<div class="setting_subwincnt setting_fastreply_subcntboard">'+
		'<div class="setting_subwinclose"></div>'+
		'<div class="setting_fastreply_head">'+
		'设置快速回复(50字以内)'+
		'<div class="setting_fastreply_select">'+
		'<select name="setting_fastreply_num">'+
		'<option value="1">1</option>'+
		'<option value="2">2</option>'+
		'<option value="3">3</option>'+
		'<option value="4">4</option>'+
		'</select>'+
		'</div>'+
		'<div class="clear"></div>'+
		'</div>'+
		'<div class="setting_fastreply_cntboard">'+
		'<textarea></textarea>'+
		'</div>'+
		'<div class="setting_subbtnlist">'+
		'<div class="setting_button setting_addfastreplystr">添加</div>'+
		'<div class="setting_button setting_delfastreplystr">删除</div>'+
		'</div>'+
		'<div class="clear"></div>'+
		'</div>'+
		'</div>'+
		'</div>'+


		
		'<!--提醒设置-->'+
		'<div class="setting_window setting_window_remindsound">'+
		'<div class="setting_whiteglass"></div>'+
		'<div class="setting_subwin setting_remindsound_subboard">'+
		'<div class="setting_subwincnt setting_remindsound_subcntboard">'+
		'<div class="setting_subwinclose"></div>'+
		'<div class="setting_remindsound_title">您可以设置开启不同类型的声音提示，点击可切换"状态"。</div>'+
		'<div class="setting_remindsound_tcnt  setting_sub_colorboard theme_color_'+uid+'">'+
		'<div class="setting_remindsound_colorhead"></div>'+
		'<div class="setting_remindsound_colorbody"></div>'+
		'<table>'+
		'<thead>'+
		'<tr>'+
		'<th class="setting_remindsound_type">声音类型</th>'+
		'<th class="setting_remindsound_try">试听</th>'+
		'<th class="setting_remindsound_status">状态</th>'+
		'<th class="setting_remindsound_file">声音文件</th>'+
		'</tr>'+
		'</thead>'+
		'<tbody>'+
		'<tr name="remindsound_frdmsgtips" class="setting_remindsound_tr">'+
		'<td>好友消息</td>'+
		'<td><div class="setting_remindsound_trymusic" name="frdmsgtips"></div></td>'+
		'<td><div class="setting_remindsound_switch" name="'+(uset['remindsound_frdmsgtips_switch']=="1"?'open':'close')+'">'+(uset['remindsound_frdmsgtips_switch']=="1"?'开启':'关闭')+'</div></td>'+
		'<td><div class="setting_remindsound_filedir" value="D:\Program Files\Tencent\QQ\Misc\Sound\Classic\msg.wav"><input type="text" value="D:\Program Files\...\msg.wav"/></div><div class="setting_remindsound_opendir"></div></td>'+
		'</tr>'+
		'<tr name="remindsound_grpmsgtips" class="setting_remindsound_tr">'+
		'<td>群/讨论组消息</td>'+
		'<td><div class="setting_remindsound_trymusic" name="grpmsgtips"></div></td>'+
		'<td><div class="setting_remindsound_switch" name="'+(uset['remindsound_grpmsgtips_switch']=="1"?'open':'close')+'">'+(uset['remindsound_grpmsgtips_switch']=="1"?'开启':'关闭')+'</div></td>'+
		'<td><div class="setting_remindsound_filedir" value="D:\Program Files\Tencent\QQ\Misc\Sound\Classic\msg.wav"><input type="text" value="D:\Program Files\...\msg.wav"/></div><div class="setting_remindsound_opendir"></div></td>'+
		'</tr>'+
		'<tr name="remindsound_frdoltips" class="setting_remindsound_tr">'+
		'<td>好友上线</td>'+
		'<td><div class="setting_remindsound_trymusic" name="frdoltips"></div></td>'+
		'<td><div class="setting_remindsound_switch" name="'+(uset['remindsound_frdoltips_switch']=="1"?'open':'close')+'">'+(uset['remindsound_frdoltips_switch']=="1"?'开启':'关闭')+'</div></td>'+
		'<td><div class="setting_remindsound_filedir" value="D:\Program Files\Tencent\QQ\Misc\Sound\Classic\msg.wav"><input type="text" value="D:\Program Files\...\msg.wav"/></div><div class="setting_remindsound_opendir"></div></td>'+
		'</tr>'+
		'<tr name="remindsound_callintips" class="setting_remindsound_tr">'+
		'<td>语音视频呼叫</td>'+
		'<td><div class="setting_remindsound_trymusic" name="callintips"></div></td>'+
		'<td><div class="setting_remindsound_switch" name="'+(uset['remindsound_callintips_switch']=="1"?'open':'close')+'">'+(uset['remindsound_callintips_switch']=="1"?'开启':'关闭')+'</div></td>'+
		'<td><div class="setting_remindsound_filedir" value="D:\Program Files\Tencent\QQ\Misc\Sound\Classic\msg.wav"><input type="text" value="D:\Program Files\...\msg.wav"/></div><div class="setting_remindsound_opendir"></div></td>'+
		'</tr>'+
		'<tr name="remindsound_sysmsgtips" class="setting_remindsound_tr">'+
		'<td>系统消息</td>'+
		'<td><div class="setting_remindsound_trymusic" name="sysmsgtips"></div></td>'+
		'<td><div class="setting_remindsound_switch" name="'+(uset['remindsound_sysmsgtips_switch']=="1"?'open':'close')+'">'+(uset['remindsound_sysmsgtips_switch']=="1"?'开启':'关闭')+'</div></td>'+
		'<td><div class="setting_remindsound_filedir" value="D:\Program Files\Tencent\QQ\Misc\Sound\Classic\msg.wav"><input type="text" value="D:\Program Files\...\msg.wav"/></div><div class="setting_remindsound_opendir"></div></td>'+
		'</tr>'+
		'<tr name="remindsound_papatips" class="setting_remindsound_tr">'+
		'<td>拍拍消息</td>'+
		'<td><div class="setting_remindsound_trymusic" name="papatips"></div></td>'+
		'<td><div class="setting_remindsound_switch" name="'+(uset['remindsound_papatips_switch']=="1"?'open':'close')+'">'+(uset['remindsound_papatips_switch']=="1"?'开启':'关闭')+'</div></td>'+
		'<td><div class="setting_remindsound_filedir" value="D:\Program Files\Tencent\QQ\Misc\Sound\Classic\msg.wav"><input type="text" value="D:\Program Files\...\msg.wav"/></div><div class="setting_remindsound_opendir"></div></td>'+
		'</tr>'+
		'</tbody>'+
		'</table>'+
		'</div>'+
		'</div>'+
		'</div>'+
		'</div>'+




		'<!--权限设置-->'+
		'<div class="setting_window setting_window_authset">'+
		'<div class="setting_whiteglass"></div>'+
		'<div class="setting_subwin setting_authset_subboard">'+
		'<div class="setting_subwincnt setting_authset_subcntboard">'+
		'<div class="setting_subwinclose"></div>'+
		'<div class="setting_authset_head">'+
		'您可以设置谁可以查看我的以下信息，点击可改变设置。'+
		'</div>'+
		'<div class="setting_authset_basic  setting_sub_colorboard">'+
		'<div class="setting_authset_whiteglass"></div>'+
		'<ul class="setting_authset_basiccnt">'+
		'<li>&nbsp;基础资料</li>'+
		'<li class="">'+
		'<div class="setting_authtile">性别</div>'+
		'<div class="setting_authvisible">'+
		'<select name="setting_auth_">'+
		'<option value="all">所有人可见</option>'+
		'<option value="frd">仅好友可见</option>'+
		'<option value="self">仅自己可见</option>'+
		'</select>'+
		'</div>'+
		'</li>'+
		'<li class="">'+
		'<div class="setting_authtile">生日</div>'+
		'<div class="setting_authvisible">'+
		'<select name="setting_auth_">'+
		'<option value="all">所有人可见</option>'+
		'<option value="frd">仅好友可见</option>'+
		'<option value="self">仅自己可见</option>'+
		'</select>'+
		'</div>'+
		'</li>'+
		'<li class="">'+
		'<div class="setting_authtile">年龄</div>'+
		'<div class="setting_authvisible">'+
		'<select name="setting_auth_">'+
		'<option value="all">所有人可见</option>'+
		'<option value="frd">仅好友可见</option>'+
		'<option value="self">仅自己可见</option>'+
		'</select>'+
		'</div>'+
		'</li>'+
		'<li class="">'+
		'<div class="setting_authtile">生肖</div>'+
		'<div class="setting_authvisible">'+
		'<select name="setting_auth_">'+
		'<option value="all">所有人可见</option>'+
		'<option value="frd">仅好友可见</option>'+
		'<option value="self">仅自己可见</option>'+
		'</select>'+
		'</div>'+
		'</li>'+
		'<li class="selected">'+
		'<div class="setting_authtile">星座</div>'+
		'<div class="setting_authvisible">'+
		'<select name="setting_auth_">'+
		'<option value="all">所有人可见</option>'+
		'<option value="frd">仅好友可见</option>'+
		'<option value="self">仅自己可见</option>'+
		'</select>'+
		'</div>'+
		'</li>'+
		'<li class="">'+
		'<div class="setting_authtile">血型</div>'+
		'<div class="setting_authvisible">'+
		'<select name="setting_auth_">'+
		'<option value="all">所有人可见</option>'+
		'<option value="frd">仅好友可见</option>'+
		'<option value="self">仅自己可见</option>'+
		'</select>'+
		'</div>'+
		'</li>'+
		'<li class="">'+
		'<div class="setting_authtile">所在地</div>'+
		'<div class="setting_authvisible">'+
		'<select name="setting_auth_">'+
		'<option value="all">所有人可见</option>'+
		'<option value="frd">仅好友可见</option>'+
		'<option value="self">仅自己可见</option>'+
		'</select>'+
		'</div>'+
		'</li>'+
		'<li class="">'+
		'<div class="setting_authtile">故乡</div>'+
		'<div class="setting_authvisible">'+
		'<select name="setting_auth_">'+
		'<option value="all">所有人可见</option>'+
		'<option value="frd">仅好友可见</option>'+
		'<option value="self">仅自己可见</option>'+
		'</select>'+
		'</div>'+
		'</li>'+
		'<li class="">'+
		'<div class="setting_authtile">Q龄</div>'+
		'<div class="setting_authvisible">'+
		'<select name="setting_auth_">'+
		'<option value="all">所有人可见</option>'+
		'<option value="frd">仅好友可见</option>'+
		'<option value="self">仅自己可见</option>'+
		'</select>'+
		'</div>'+
		'</li>'+
		'</ul>'+
		'<div class="clear"></div>'+
		'</div>'+
		'<div class="setting_authset_extend  setting_sub_colorboard">'+
		'<div class="setting_authset_whiteglass"></div>'+
		'<ul class="setting_authset_extendcnt">'+
		'<li>&nbsp;扩展资料</li>'+
		'<li class="">'+
		'<div class="setting_authtile">姓名</div>'+
		'<div class="setting_authvisible">'+
		'<select name="setting_auth_">'+
		'<option value="all">所有人可见</option>'+
		'<option value="frd">仅好友可见</option>'+
		'<option value="self">仅自己可见</option>'+
		'</select>'+
		'</div>'+
		'</li>'+
		'<li class="">'+
		'<div class="setting_authtile">英文名</div>'+
		'<div class="setting_authvisible">'+
		'<select name="setting_auth_">'+
		'<option value="all">所有人可见</option>'+
		'<option value="frd">仅好友可见</option>'+
		'<option value="self">仅自己可见</option>'+
		'</select>'+
		'</div>'+
		'</li>'+
		'<li class="">'+
		'<div class="setting_authtile">地址/邮编</div>'+
		'<div class="setting_authvisible">'+
		'<select name="setting_auth_">'+
		'<option value="all">所有人可见</option>'+
		'<option value="frd">仅好友可见</option>'+
		'<option value="self">仅自己可见</option>'+
		'</select>'+
		'</div>'+
		'</li>'+
		'<li class="">'+
		'<div class="setting_authtile">电话</div>'+
		'<div class="setting_authvisible">'+
		'<select name="setting_auth_">'+
		'<option value="all">所有人可见</option>'+
		'<option value="frd">仅好友可见</option>'+
		'<option value="self">仅自己可见</option>'+
		'</select>'+
		'</div>'+
		'</li>'+
		'<li class="">'+
		'<div class="setting_authtile">手机</div>'+
		'<div class="setting_authvisible">'+
		'<select name="setting_auth_">'+
		'<option value="all">所有人可见</option>'+
		'<option value="frd">仅好友可见</option>'+
		'<option value="self">仅自己可见</option>'+
		'</select>'+
		'</div>'+
		'</li>'+
		'<li class="">'+
		'<div class="setting_authtile">邮箱</div>'+
		'<div class="setting_authvisible">'+
		'<select name="setting_auth_">'+
		'<option value="all">所有人可见</option>'+
		'<option value="frd">仅好友可见</option>'+
		'<option value="self">仅自己可见</option>'+
		'</select>'+
		'</div>'+
		'</li>'+
		'<li class="">'+
		'<div class="setting_authtile">主页</div>'+
		'<div class="setting_authvisible">'+
		'<select name="setting_auth_">'+
		'<option value="all">所有人可见</option>'+
		'<option value="frd">仅好友可见</option>'+
		'<option value="self">仅自己可见</option>'+
		'</select>'+
		'</div>'+
		'</li>'+
		'<li class="">'+
		'<div class="setting_authtile">职业/职位</div>'+
		'<div class="setting_authvisible">'+
		'<select name="setting_auth_">'+
		'<option value="all">所有人可见</option>'+
		'<option value="frd">仅好友可见</option>'+
		'<option value="self">仅自己可见</option>'+
		'</select>'+
		'</div>'+
		'</li>'+
		'<li class="">'+
		'<div class="setting_authtile">学历</div>'+
		'<div class="setting_authvisible">'+
		'<select name="setting_auth_">'+
		'<option value="all">所有人可见</option>'+
		'<option value="frd">仅好友可见</option>'+
		'<option value="self">仅自己可见</option>'+
		'</select>'+
		'</div>'+
		'</li>'+
		'<li class="">'+
		'<div class="setting_authtile">学校</div>'+
		'<div class="setting_authvisible">'+
		'<select name="setting_auth_">'+
		'<option value="all">所有人可见</option>'+
		'<option value="frd">仅好友可见</option>'+
		'<option value="self">仅自己可见</option>'+
		'</select>'+
		'</div>'+
		'</li>'+
		'</ul>'+
		'<div class="clear"></div>'+
		'</div>'+
		'<div class="clear"></div>'+
		'<div class="setting_authset_reset">恢复默认</div>'+
		'</div>'+
		'</div>'+
		'</div>'+


		'<!--屏蔽联系人管理-->'+
		'<div class="setting_window setting_window_shieldcontact">'+
		'<div class="setting_whiteglass"></div>'+
		'<div class="setting_subwin setting_shieldcontact_subboard">'+
		'<div class="setting_subwincnt setting_shieldcontact_subcntboard">'+
		'<div class="setting_subwinclose"></div>'+
		'<div class="setting_shieldcontact_title">您不会收到来自列表中的联系人给您发送的消息</div>'+
		'<div class="setting_shieldcontact_tcnt setting_sub_colorboard theme_color_'+uid+'">'+
		'<div class="setting_shieldcontact_colorhead"></div>'+
		'<div class="setting_shieldcontact_colorbody"></div>'+
		'<table>'+
		'<thead>'+
		'<tr>'+
		'<th class="setting_shieldcontact_account">账号</th>'+
		'<th class="setting_shieldcontact_nick">昵称/姓名</th>'+
		'<th class="setting_shieldcontact_sex">性别</th>'+
		'</tr>'+
		'</thead>'+
		'<tbody>'+
		'<tr>'+
		'<td></td>'+
		'<td></td>'+
		'<td></td>'+
		'</tr>'+

		'</tbody>'+
		'</table>'+
		'</div>'+
		'<div class="setting_shieldcontact_remove">解除屏蔽</div>'+
		'<div class="clear"></div>'+
		'</div>'+
		'</div>'+
		'</div>'+

		'<!--屏蔽会话管理-->'+
		'<div class="setting_window setting_window_shieldsession">'+
		'<div class="setting_whiteglass"></div>'+
		'<div class="setting_subwin setting_shieldsession_subboard">'+
		'<div class="setting_subwincnt setting_shieldsession_subcntboard">'+
		'<div class="setting_subwinclose"></div>'+
		'<div class="setting_shieldsession_title">您不会收到来自列表中会话来源发起的临时会话消息</div>'+
		'<div class="setting_shieldsession_tcnt setting_sub_colorboard theme_color_'+uid+'">'+
		'<div class="setting_shieldsession_colorhead"></div>'+
		'<div class="setting_shieldsession_colorbody"></div>'+
		'<ul>'+
		'<li class="head">会话来源</li>'+
		'</ul>'+
		'</div>'+
		'<div class="setting_shieldsession_remove">解除屏蔽</div>'+
		'<div class="clear"></div>'+
		'</div>'+
		'</div>'+
		'</div>'+
		'<!--内子设置面板完毕-->'+





		'</div></div>'
		);


		var setboard=$("#setting_board_"+uid);
		//设置顶部bar色
		var th=usr.getpro(uid,'theme');
		setboard.find('.theme_color_'+uid).css('background',th['bgcolor']);
		setboard.find('.theme_op_'+uid).css("filter","alpha(opacity="+th['skinopacity']+")").css("-moz-opacity",(th['skinopacity']/100)).css("opacity",(th['skinopacity']/100));

		Scroll.reset(setboard.find(".setting_setolremindineed"),setboard.find(".setting_setolremindineedcnt"),setboard.find(".setting_setolremindineedpage"));
		

	}

	var _bind=function()
	{
		drag($(".setting_board"));

		/*设置滚动*/
		$(".setting_content").mouseover(function()
		{
			setScroll($(this));
		}).mouseout(function()
		{
			window.onmousewheel=document.onmousewheel=null;
		});
		/*切换面板*/
		$(".setting_title_tag").click(function()
		{
			var cls=$(this).attr("class");
			if(cls.indexOf("set_d")>=0)
			{
				return;
			}
			var sb=$(this).siblings(".setting_title_tag");
			for(var i=0;i<sb.length;i++)
			{
				sb.eq(i).attr("class",	sb.eq(i).attr("class").replace("set_d","set_n"));
			}
			$(this).attr("class",cls.replace("set_n","set_d"));

			var now=$(this).attr('class');
			var reg=/([a-zA-z]+)_set[^a-zA-z]*([a-zA-z]+)_set_d[^a-zA-z]*setting_title_tag/;
			var name=reg.exec(now);
			var tagname=name[1];

			$(this).parent(".setting_title").siblings(".setting_content").css("display","none");
			$(this).parent(".setting_title").siblings(".setting_content_"+tagname).css("display","block");


		});
		/*设置点击按钮*/
		$(".setting_list_title").click(function()
		{
			if($(this).hasClass("now"))
			{
				return;
			}
			var target=$(this).attr("class").replace("setting_list_title setting_list_","");
			target=$(this).parents(".setting_content").find(".setting_detail_"+target);
			//页面平移高度=距离高度-目标的偏移高度(固定的)
			var ptop=10-target[0].offsetTop;
			//设置列表选中状态
			$(this).siblings(".setting_list_title").removeClass("now");
			$(this).addClass("now");
			//调整滚动页偏移高度
			$(this).parents(".setting_content").find(".setting_detail_page").css("top",ptop+"px");
			//重置滑块状态
			resetScroll($(this).parents(".setting_content"));
		});
	
		/*关闭按钮*/
		$(".setting_close").click(function(e)
		{
			var uid=$(this).parents(".setting_board").attr("id").replace("setting_board_","");
			/*if($('body').find("#setting_addreplylist_"+uid).length>0||$('body').find("#setting_editreplylist_"+uid).length>0||$('body').find("#setting_choiceremindcontact_"+uid).length>0)
			{
				$('body').find("#setting_addreplylist_"+uid).length>0?$('body').find("#setting_addreplylist_"+uid+" textarea")[0].focus():$('body').find("#setting_editreplylist_"+uid+" textarea")[0].focus();
				return false;
			}
			*/
			/*
				关闭退出时，收集所有更改过的参数，并发送到服务器更新
			*/
			
			var us=tempval.getoneall(uid,'userset');
			console.log(us);
			if(us)
			{
			
				//首先将设置同步到全局用户设置
				var uset=usr.getpro(uid,'setting');
				console.log("全局数组");
				console.log(uset);
				var getset={};
				for(var i in us)
				{
					if(uset[i]!=us[i]&&i!="id")
					{
						usr.setpro(uid,'setting',i,''+us[i]);
						getset[i]=us[i];
					}
				}
				usr.setpro(uid,'setting','frdolremind_list',$.trim(usr.getpro(uid,'setting','frdolremind_list'))=='clear'?'':usr.getpro(uid,'setting','frdolremind_list'));
				/*
				console.log("us");
				console.log(us);
				*/
				//再更新到网络设置
				/*console.log("更新后全局数组");
				console.log(usr.getpro(uid,'setting'));

				console.log("getset");
				console.log(getset);
				*/
				ajaxset(uid,getset,'part',function(msg)
				{
					tempval.cleanoneall(uid,'userset');
					tempval.cleanoneall(uid,'sandbox');
				});
			}

			$(this).parents(".setting_board").remove();
			if($(".setting_board").length<=0)
			{
				$("#setting_boardjs").remove();
			}
			e.stopImmediatePropagation();
		});


		/*点击选中按钮，并向全局设置数组更新该设置*/
		$(".setting_ck").click(function(e)
		{
			
			if($(this).parent("li").hasClass("disabled")&&$(this).parent("li").hasClass("setting_changestatuswhenmousestop")==false)
			{
				return false;
			}
			if($(this).hasClass("disabled"))
			{
				return false;
			}
			
			var ck=0;
			if($(this).hasClass("checked"))
			{
				$(this).removeClass("checked");
				if($(this).parent("li").hasClass("setting_changestatuswhenmousestop"))
				{
					var p=$(this).parent("li");
					p.removeClass("setting_li");
					p.addClass("disabled");
					p.find(".setting_radiobtn").addClass("disabled");
					p.find(".setting_clickinput").addClass("disabled");
					p.find(".setting_select").addClass("disabled");
				}
			}
			else
			{
				$(this).addClass("checked");
				if($(this).parent("li").hasClass("setting_changestatuswhenmousestop"))
				{
					var p=$(this).parent("li");
					p.removeClass("disabled");
					p.addClass("setting_li");
					p.find(".setting_radiobtn").removeClass("disabled");
					p.find(".setting_clickinput").removeClass("disabled");
					p.find(".setting_select").removeClass("disabled");
				}
				ck=1;
			}
			
			//将修改的设置加入到临时用户设置数组中
			var uid=$(this).parents(".setting_board").attr("id").replace("setting_board_","");
			
			var setname=$.trim($(this).parent("li").attr("class").replace("setting_li","").replace("disabled","").replace("setting_",""));
			console.log(setname);
			console.log(uid);
		
			tempval.setone(uid,'userset',setname,ck);


			console.log(tempval.getoneall(uid,'userset'));
			//console.log(usr.getpro(uid,'setting'));
			//console.log(usr.getall(uid));
			e.stopImmediatePropagation();
		});

		/*单选点击*/
		$(".setting_radiolist>li").click(function(e)
		{
			var rd=$(this).find(".setting_radiobtn");
			if(rd.hasClass("disabled")||rd.hasClass("radiochecked"))
			{
				return;
			}
			$(this).siblings("li").find(".setting_radiobtn").removeClass("radiochecked");
			rd.addClass("radiochecked");

			//将修改的设置加入到临时用户设置数组中
			var uid=$(this).parents(".setting_board").attr("id").replace("setting_board_","");
			var setname=$(this).parents(".setting_radiolist").attr("name").replace("setting_","");
			//var setval=rd.attr("name");
			var setval=parseInt($(this).index())+1;

			if($(this).parent(".setting_radiolist").hasClass("setting_msgsavedir_select"))
			{
				if(setval==3)
				{
					if($(this).find(".setting_msgsavedir_diy").css("display")=="none")
					{
						$(this).find(".setting_msgsavedir_diy").css("display","block");
					}
				}
				else
				{
					if($(this).parent(".setting_radiolist").find(".setting_msgsavedir_diy").css("display")=="block")
					{
						$(this).parent(".setting_radiolist").find(".setting_msgsavedir_diy").css("display","none");
					}
				}
			}
			
			if($(this).parent(".setting_radiolist").hasClass("setting_frdolremind_select"))
			{
				if(setval==3)
				{
					$(this).find(".setting_setolremindineedli").css("display","block");
				}
				else
				{
					$(this).parent(".setting_radiolist").find(".setting_setolremindineedli").css("display","none");
				}
			}



			tempval.setone(uid,'userset',setname,setval);
			e.stopImmediatePropagation();
			//console.log(tempval.getoneall(uid,'userset'));
		});
		
	

		/*上下点击增减输入框*/
		$(".upaddclick").click(function()
		{
			if($(this).parents(".setting_clickinput").hasClass("disabled"))
			{
				return;
			}
			var input=$(this).parent(".updownclick").siblings("input");
			input[0].select();
			input.val(parseInt(input.val())+1);
			
			//将修改的设置加入到临时用户设置数组中
			var uid=$(this).parents(".setting_board").attr("id").replace("setting_board_","");
			var setname=$(this).parents(".setting_clickinput").attr("name").replace("setting_","");
			var setval=input.val();
			tempval.setone(uid,'userset',setname,setval);


			//console.log(tempval.getoneall(uid,'userset'));

		});
		$(".downminusclick").click(function()
		{
			if($(this).parents(".setting_clickinput").hasClass("disabled"))
			{
				return;
			}
			var input=$(this).parent(".updownclick").siblings("input");
			input[0].select();
			input.val((parseInt(input.val())-1)<=0?0:(parseInt(input.val())-1));

			//将修改的设置加入到临时用户设置数组中
			var uid=$(this).parents(".setting_board").attr("id").replace("setting_board_","");
			var setname=$(this).parents(".setting_clickinput").attr("name").replace("setting_","");
			var setval=input.val();
			tempval.setone(uid,'userset',setname,setval);


			//console.log(tempval.getoneall(uid,'userset'));
		});

		
		$(".setting_select>select").change(function()
		{
			var uid=$(this).parents(".setting_board").attr("id").replace("setting_board_","");
			var val=parseInt($(this).find("option:selected").index())+1;
			var setname=$(this).attr("name").replace("setting_","");
			tempval.setone(uid,'userset',setname,val);
		});

		

		/*打开子窗口设置*/

		//通用关闭按钮
		$(".setting_subwinclose").click(function()
		{
			var id=$(this).parents(".setting_board").attr("id").replace("setting_board_","");

			/*if($(this).parents(".setting_window").hasClass("setting_window_autorely"))
			{
			
				if($('body').find("#setting_addreplylist_"+id).length>0||$('body').find("#setting_editreplylist_"+id).length>0)
				{
					$('body').find("#setting_addreplylist_"+id).length>0?$('body').find("#setting_addreplylist_"+id+" textarea")[0].focus():$('body').find("#setting_editreplylist_"+id+" textarea")[0].focus();
					return false;
				}
			}
			*/

			if($(this).parent(".setting_subwincnt").hasClass("setting_fastreply_subcntboard"))
			{
				var faststr=$.trim(tempval.getone(id,'userset','autoreply_fast')==false?usr.getpro(id,'setting','autoreply_fast'):tempval.getone(id,'userset','autoreply_fast'));
				var fastindex=$.trim(tempval.getone(id,'userset','autoreply_fast_index')==false?usr.getpro(id,'setting','autoreply_fast_index'):tempval.getone(id,'userset','autoreply_fast_index'));
				var fastarr=faststr.split(";");
				for(var i=0;i<fastarr.length;i++)
				{
					if($.trim(fastarr[i])=="")
					{
						fastarr.remove(i);
						if(fastindex==(i+1)&&fastindex>=fastarr.length)
						{
							fastindex=fastarr.length;
						}
					}
				}

				faststr=fastarr.join(";");
				
				tempval.setone(id,'userset','autoreply_fast',faststr);
				tempval.setone(id,'userset','autoreply_fast_index',fastindex);
			}


			$(this).parents(".setting_window").css("display","none");
		});
		

		/*
		-------------自动回复设置-----
		*/

		//自动回复设置按钮
		$(".setting_autoreplyset").click(function()
		{
			
			var id=$(this).parents(".setting_board").attr("id").replace("setting_board_","");
			/*
			打开自动回复设置时，先检查临时设置数组中有没有数据，有则使用，没有则使用全局用户数组中数据
			*/
			var replystr=tempval.getone(id,'userset','autoreply_text')==false?usr.getpro(id,'setting','autoreply_text'):tempval.getone(id,'userset','autoreply_text');
			var cntboard=$(this).parents(".setting_cntboard").find(".setting_window_autorely .setting_autorely_cntboard");
			if($.trim(replystr)!="")
			{
				var replyarr=replystr.split(";");
				if(replyarr.length>0)
				{
					var list='';
					for(var i=0;i<replyarr.length;i++)
					{
						list+='<li class="setting_autorely_cntli">'+(i+1)+'<span class="autorely_cnt">'+replyarr[i]+'</span></li>';
					}
					
					cntboard.find(".setting_autorely_cntpage").html("");
					cntboard.find(".setting_autorely_cntpage").append(list);
					bind();
				}
			}
			$(this).parents(".setting_cntboard").find(".setting_window_autorely").css("display","block");
			console.log('打开时='+cntboard[0].clientHeight);
			Scroll.set(cntboard,cntboard.find(".setting_autorely_cnt"),cntboard.find(".setting_autorely_cntpage"));
		});

		//自动回复添加按钮
		$(".setting_addrelystr").click(function()
		{
			var id=$(this).parents(".setting_board").attr("id").replace("setting_board_","");
			
			if($("#setting_addreplylist_"+id).length<=0)
			{
				subwin.init(id,'addreply');
			}
			$("#setting_addreplylist_"+id+" textarea")[0].focus();
		});
		
		//修改自动回复按钮
		$(".setting_modifyrelystr").click(function()
		{
			var id=$(this).parents(".setting_board").attr("id").replace("setting_board_","");
			
			if($("#setting_editreplylist_"+id).length<=0)
			{
				var selectli=$(this).parents(".setting_autorely_subcntboard").find(".selected");
				//console.log("selectli="+selectli.length);
				if(selectli.length<=0)
				{
					return;
				}
				var index=selectli.index();
				//console.log("open index="+index);
				var str=selectli.find(".autorely_cnt").html();
				subwin.init(id,'editreply',{index:index,str:str});
			}
			$("#setting_editreplylist_"+id+" textarea").select();
			$("#setting_editreplylist_"+id+" textarea")[0].focus();
		});
		//删除自动回复条目按钮
		$(".setting_delrelystr").click(function()
		{
			var id=$(this).parents(".setting_board").attr("id").replace("setting_board_","");

			var selectli=$(this).parents(".setting_autorely_subcntboard").find(".selected");
			//console.log("selectli="+selectli.length);
			if(selectli.length<=0)
			{
				return;
			}
			var index=selectli.index();

			var replystr=$.trim(tempval.getone(id,'userset','autoreply_text')==false?usr.getpro(id,'setting','autoreply_text'):tempval.getone(id,'userset','autoreply_text'));
			var replyarr=replystr.split(";");
			
			replyarr.remove(index);
			replystr='';
			for(var i=0;i<replyarr.length;i++)
			{
				replystr+=replyarr[i]+";";
			}
			replystr=replystr.substring(0,replystr.length-1);

			tempval.setone(id,'userset','autoreply_text',replystr);
			
			var list='';
			for(var i=0;i<replyarr.length;i++)
			{
				list+='<li class="setting_autorely_cntli">'+(i+1)+'<span class="autorely_cnt">'+replyarr[i]+'</span></li>';
			}
			var cntboard=$(this).parents(".setting_cntboard").find(".setting_window_autorely .setting_autorely_cntboard");
			cntboard.find(".setting_autorely_cntpage").html("");
			cntboard.find(".setting_autorely_cntpage").append(list);
			bind();
			Scroll.reset(cntboard,cntboard.find(".setting_autorely_cnt"),cntboard.find(".setting_autorely_cntpage"));
		});
		


		
		/*
		-------------快捷回复设置-----
		*/

		//快捷回复设置按钮
		$(".setting_fastreplyset").click(function()
		{
			var id=$(this).parents(".setting_board").attr("id").replace("setting_board_","");

			var fastboard=$(this).parents(".setting_cntboard").find(".setting_window_fastreply");

			var select=fastboard.find("select[name='setting_fastreply_num']");

			var faststr=$.trim(tempval.getone(id,'userset','autoreply_fast')==false?usr.getpro(id,'setting','autoreply_fast'):tempval.getone(id,'userset','autoreply_fast'));
			var fastindex=$.trim(tempval.getone(id,'userset','autoreply_fast_index')==false?usr.getpro(id,'setting','autoreply_fast_index'):tempval.getone(id,'userset','autoreply_fast_index'));
			if($.trim(faststr)!="")
			{
				var fastarr=faststr.split(";");
				select.html("");
				for(var i=0;i<fastarr.length;i++)
				{
					select.append('<option value="'+fastarr[i]+'"'+(fastindex==(i+1)?' selected':'')+'>'+(i+1)+'</option>');
					if(fastindex==(i+1))
					{
						fastboard.find("textarea").val(fastarr[i]);
						fastboard.find("textarea").attr("index",fastindex);
					}
				}
			}
			fastboard.css("display","block");
		});

		//下拉选择设置
		$(".setting_fastreply_select>select[name='setting_fastreply_num']").change(function()
		{
			var id=$(this).parents(".setting_board").attr("id").replace("setting_board_","");
			var selected=$(this).find('option:selected');
			$(this).parents('.setting_fastreply_subcntboard').find('textarea').val(selected.val());
			$(this).parents('.setting_fastreply_subcntboard').find('textarea').attr("index",parseInt(selected.index())+1);

			tempval.setone(id,'userset','autoreply_fast_index',parseInt(selected.index())+1);
		});

		//添加快捷回复按钮
		$(".setting_addfastreplystr").click(function()
		{
			var id=$(this).parents(".setting_board").attr("id").replace("setting_board_","");
			var parent=$(this).parents(".setting_fastreply_subcntboard");
			var faststr=$.trim(tempval.getone(id,'userset','autoreply_fast')==false?usr.getpro(id,'setting','autoreply_fast'):tempval.getone(id,'userset','autoreply_fast'));
			var fastindex=$.trim(tempval.getone(id,'userset','autoreply_fast_index')==false?usr.getpro(id,'setting','autoreply_fast_index'):tempval.getone(id,'userset','autoreply_fast_index'));
			var fastarr=faststr.split(";");

			parent.find("select[name='setting_fastreply_num']").append('<option value="" selected>'+(fastarr.length+1)+'</option>');
			parent.find("textarea").val("");
			parent.find("textarea").attr("index",fastarr.length+1);
			
			faststr=faststr+";";
			tempval.setone(id,'userset','autoreply_fast',faststr);
			tempval.setone(id,'userset','autoreply_fast_index',fastarr.length+1);
		});

		//快捷回复输入框的变动事件
		$('.setting_fastreply_subcntboard textarea').change(function()
		{
			var id=$(this).parents(".setting_board").attr("id").replace("setting_board_","");
			var index=$(this).attr("index");


			var faststr=$.trim(tempval.getone(id,'userset','autoreply_fast')==false?usr.getpro(id,'setting','autoreply_fast'):tempval.getone(id,'userset','autoreply_fast'));
			//var fastindex=$.trim(tempval.getone(id,'userset','autoreply_fast_index')==false?usr.getpro(id,'setting','autoreply_fast_index'):tempval.getone(id,'userset','autoreply_fast_index'));
			var fastarr=faststr.split(";");

			fastarr[index-1]=$.trim($(this).val());
			faststr=fastarr.join(";");
			tempval.setone(id,'userset','autoreply_fast',faststr);
		});

		//删除快捷回复条目按钮
		$(".setting_delfastreplystr").click(function()
		{
			var id=$(this).parents(".setting_board").attr("id").replace("setting_board_","");
			var faststr=$.trim(tempval.getone(id,'userset','autoreply_fast')==false?usr.getpro(id,'setting','autoreply_fast'):tempval.getone(id,'userset','autoreply_fast'));
			var fastindex=$.trim(tempval.getone(id,'userset','autoreply_fast_index')==false?usr.getpro(id,'setting','autoreply_fast_index'):tempval.getone(id,'userset','autoreply_fast_index'));
			var fastarr=faststr.split(";");
			if(fastarr.length<=1)
			{
				return false;
			}
			var parent=$(this).parents(".setting_fastreply_subcntboard");

			var index=parent.find('textarea').attr("index");
			fastarr.remove(index-1);
			parent.find("select[name='setting_fastreply_num'] option:selected").remove();
			parent.find("select[name='setting_fastreply_num'] option").eq(index-2).attr('selected',true);
			parent.find('textarea').attr("index",index-1);
			parent.find('textarea').val(fastarr[index-2]);

			faststr=fastarr.join(";");
			
			tempval.setone(id,'userset','autoreply_fast',faststr);
			tempval.setone(id,'userset','autoreply_fast_index',index-1);
		});




		//提示音设置按钮
		$(".setting_tipsoundset").click(function()
		{
			$(this).parents(".setting_cntboard").find(".setting_window_remindsound").css("display","block");
		});
		




		$(".setting_authset").click(function()
		{
			$(this).parents(".setting_cntboard").find(".setting_window_authset").css("display","block");
		});

		$(".setting_shieldcontactman").click(function()
		{
			$(this).parents(".setting_cntboard").find(".setting_window_shieldcontact").css("display","block");
		});

		$(".setting_shieldsessiontman").click(function()
		{
			$(this).parents(".setting_cntboard").find(".setting_window_shieldsession").css("display","block");
		});



		/*
		设置滚动条
		*/	
		$(".setting_autorely_cntboard").mouseover(function()
		{
			Scroll.set($(this),$(this).find(".setting_autorely_cnt"),$(this).find(".setting_autorely_cntpage"));
		});
	


		/*
		
		可拖动子窗口设置
			
		*/

		//添加好友上线提醒好友
		$(".setting_addonlineremindfrd").click(function()
		{
			var id=$(this).parents(".setting_board").attr("id").replace("setting_board_","");

			if($("body").find("#setting_choiceremindcontact_"+id).length<=0)
			{
				subwin.init(id,'choiceremindcontact');
			}
			//console.log(usr.getall(id));
		});
	
		/*已选提醒好友鼠标移上设置滚动事件*/	
		$(".setting_setolremindineed").mouseover(function()
		{
			Scroll.set($(this),$(this).find(".setting_setolremindineedcnt"),$(this).find(".setting_setolremindineedpage"));
		});
			
		/*已设置提醒好友的列表鼠标移上移出事件*/
		$("li[name='setting_setolremindineedli_frd']").mouseover(function()
		{
			$(this).addClass('theme_color');
		}).mouseout(function()
		{
			$(this).removeClass('theme_color');
		});
		/*已选提醒好友删除按钮*/
		$(".setting_delaremindfrd").click(function()
		{
			var id=$(this).parents(".setting_board").attr("id").replace("setting_board_","");
			var p=$(this).parent("li[name='setting_setolremindineedli_frd']");
			var board=p.parents(".setting_setolremindineed");
			var fid=p.attr("fid");

			var remindfrdarr=tempval.getone(id,'userset','frdolremind_list')==false?usr.getpro(id,'setting','frdolremind_list'):tempval.getone(id,'userset','frdolremind_list');
			if(remindfrdarr.length<=0||remindfrdarr=="clear")
			{
				return;
			}
			console.log('关闭时remindfrdarr='+tempval.getone(id,'userset','frdolremind_list'));
			console.log('关闭时remindfrdarr='+usr.getpro(id,'setting','frdolremind_list'));
			remindfrdarr=remindfrdarr.split(';')

			for (var i=0;i<remindfrdarr.length;i++)
			{
				if(parseInt(remindfrdarr[i])==parseInt(fid))
				{
					remindfrdarr.remove(i);
				}
			}
			var remindfrdstr=$.trim(remindfrdarr.join(';'));

			remindfrdstr=remindfrdstr.length<=0?'clear':remindfrdstr;

			tempval.setone(id,'userset','frdolremind_list',remindfrdstr);
			
			p.remove();

			Scroll.reset(board,board.find(".setting_setolremindineedcnt"),board.find(".setting_setolremindineedpage"));

		});


		/*
		提示音设置
		*/

		//试听按钮
		$(".setting_remindsound_trymusic").click(function()
		{
			var sname=$(this).attr("name");
			switch(sname)
			{
				case 'frdmsgtips':
				case 'grpmsgtips':
				case 'papatips':
					$("#gotamsg")[0].play();
					break;
				case 'frdoltips':
					$("#gotaglobal")[0].play();
					break;
				case 'sysmsgtips':
					$("#gotasys")[0].play();
					break;
				case 'callintips':
					$("#gotacall")[0].play();
					break;
				default:
					$("#gotamsg")[0].play();
			}
		});
		//开启/关闭提示音按钮
		$(".setting_remindsound_switch").click(function()
		{
			var name=$(this).attr("name");
			var id=$(this).parents(".setting_board").attr("id").replace("setting_board_","");
			tempval.setone(id,'userset',$(this).parents('.setting_remindsound_tr').attr("name")+'_switch',name=="open"?0:1);
			

			$(this).attr("name",name=="open"?'close':"open");
			$(this).html(name=="open"?'关闭':"开启");


			
		});











		
	}




	function bind()
	{

		//自动回复列表条目点击选中事件
		$(".setting_autorely_cntpage>.setting_autorely_cntli").click(function()
		{
			if($(this).hasClass("selected"))
			{
				return;
			}
			$(this).siblings(".setting_autorely_cntli").removeClass("selected");
			$(this).addClass("selected");
		});





	}


	var subwin=
	{
		init:function(id,type,from)
		{
			this.create(id,type,from);
			this.bind(id,type,from);
		},
		create:function(id,type,from)
		{
			var classname=null;
			var title=null;
			var ext=null;
			var cntclass="";
			if(type=="addreply")
			{
				classname="setting_addreplylist";
				title="添加自动回复";
				ext='<div class="setting_addreplylisttitle">回复内容(100字以内)</div><textarea class="setting_addreplylisteditboard"></textarea>';
			}
			else if(type=="editreply")
			{
				classname="setting_editreplylist";
				title="修改自动回复";
				ext='<div class="setting_editreplylisttitle">回复内容(100字以内)</div><textarea class="setting_editreplylisteditboard">'+from.str+'</textarea>';
			}
			else if(type=="choiceremindcontact")
			{
				classname="setting_choiceremindcontact";
				title="选择联系人";
				cntclass="setting_choiceremindcontactboard";
				var gps=usr.getpro(id,'frdgrp');
				var frds=usr.getpro(id,'frd');
				//var remfrd=tempval.getone(id,'userset','frdolremind_list')==false?usr.getpro(id,'setting','frdolremind_list'):tempval.getone(id,'userset','frdolremind_list');
				//remfrd=remfrd==false?usr.getpro(id,'setting','frdolremind_list'):remfrd;
				//remfrd=remfrd==false?'':remfrd;
				console.log("---------打开新对话框-------");
				console.log(tempval['sandbox']);
				//console.log(tempval['userset']);
				//console.log(tempval);
				var remfrd=null;
				//如果userset数组对象中frdolremind_list为clear，则是已经设置到userset中但未保存到setting中，则清空处理
				if($.trim(tempval.getone(id,'userset','frdolremind_list'))=="clear")
				{	
					remfrd="";
					tempval.setone(id,'userset','frdolremind_list',"");
				}
				else
				{
					//若不是，则userset未设置，使用setting的设置
					if($.trim(usr.getpro(id,'setting','frdolremind_list'))=="clear")
					{
						remfrd="";
						usr.setpro(id,'setting','frdolremind_list','');
					}
					else
					{
						remfrd=(tempval.getone(id,'userset','frdolremind_list')==""||false)?usr.getpro(id,'setting','frdolremind_list'):tempval.getone(id,'userset','frdolremind_list');
					}
					tempval.setone(id,'userset','frdolremind_list',remfrd);
				}
				

				
				//每次打开都创建临时沙盒，关闭时再将临时沙盒内数据与临时数据同步
				tempval.setone(id,'sandbox','frdolremind_list',remfrd);

				
				/*
				
				console.log("1-------"+id+","+remfrd+"    userset的remind:"+(tempval.getone(id,'userset','frdolremind_list')==false));
				console.log('sanbox内:'+tempval.getone(id,'sandbox','frdolremind_list'));
				console.log('userset内:'+tempval.getone(id,'userset','frdolremind_list'));
				console.log('setting内:'+usr.getpro(id,'setting','frdolremind_list'));
			*/
				//console.log(usr.getpro(id,'setting'));


			/*
					<li class="setting_grp show">
							<div class="setting_grpname nor">我的好友<div class="setting_addthisgrp" title="添加全组"></div></div>
							<ul>
								<li class="normal" title=".(425661254)">
									<div class="setting_frdhead"><img src="img/userhead4_72.png"/></div>
									.(425661254)
								</li>
								<li class="selected" title="wannna(905536187)">
									<div class="setting_frdhead"><img src="img/userhead5_80.jpg"/></div>
									wannna(905536187)
								</li>
								<li class="normal" title="GiGi(2072626970)">
									<div class="setting_frdhead"><img src="img/wanna.jpg"/></div>
									GiGi(2072626970)
								</li>
							</ul>
						</li>
				*/

				var grplist='';
				
				if(gps.length<=0)
				{
					grplist='<li class="setting_grp hide" gid="0"><div class="setting_grpname nor">我的好友<div class="setting_addthisgrp" title="添加全组"></div></div><ul>';

					for (var i=0;i<frds.length;i++)
					{
						grplist+='<li class="normal" title="'+(frds[i].frdname==""?frds[i].name:frds[i].frdname)+'('+frds[i].account+')" fid="'+frds[i].id+'" name="setting_grp_frd"><div class="setting_frdhead"><img src="'+frds[i].img30+'"/></div>'+(frds[i].frdname==""?frds[i].name:frds[i].frdname)+'('+frds[i].account+')</li>';
					}
					grplist+='</ul></li>';

				}
				else
				{
					for (var i=0;i<gps.length;i++)
					{
						grplist+='<li class="setting_grp hide" gid="'+gps[i].id+'"><div class="setting_grpname nor">'+(parseInt(gps[i].id)==0?'我的好友':gps[i].gname)+'<div class="setting_addthisgrp" title="添加全组"></div></div><ul>';
						for(var k=0;k<frds.length;k++)
						{
							if(frds[k].gid==gps[i].id)
							{
								grplist+='<li class="normal" title="'+(frds[i].frdname==""?frds[i].name:frds[i].frdname)+'('+frds[i].account+')" fid="'+frds[i].id+'" name="setting_grp_frd"><div class="setting_frdhead"><img src="'+frds[i].img30+'"/></div>'+(frds[i].frdname==""?frds[i].name:frds[i].frdname)+'('+frds[i].account+')</li>';
								continue;
							}
						}
						grplist+='</ul></li>';
					}
				}

				var remindfrd='';
				if(remfrd!="")
				{
					

					var remindfrdarr=remfrd.split(";");
					console.log("创建li"+remindfrdarr);
					for(var i=0;i<remindfrdarr.length;i++)
					{
						var fobj=usr.getaother(id,remindfrdarr[i]);
						remindfrd+='<li class="normal" name="setting_remindfrd_frd" fid="'+remindfrdarr[i]+'"><div class="setting_frdhead"><img src="'+fobj.img30+'"/></div>'+(fobj.frdname==""?fobj.name:fobj.frdname)+'<div class="setting_defrdframe"><div class="setting_delthisfrd"><img src="img/SelectContact/deleteicon.png"/></div></div></li>';
					}
				}







				ext=
				'<input type="text" class="setting_searchcontact" value="输入查找关键字"/>'+
				'<div class="setting_searchcontactclear"></div>'+
				'<div class="setting_choicetitle">已选联系人:</div>'+
				'<div class="clear"></div>'+
				'<div class="setting_frdlist theme_color_'+id+'">'+
				'<div class="setting_subwindowglass"></div>'+
				'<div class="setting_frdlistcnt">'+
				'<ul class="setting_frdlistcntpage">'+
				grplist+
				/*'<li class="setting_grp hide">'+
				'<div class="setting_grpname nor">我的校友<div class="setting_addthisgrp" title="添加全组"></div></div>'+
				'<ul>'+
				'<li class="normal" title=".(425661254)">'+
				'<div class="setting_frdhead"><img src="img/userhead4_72.png"/></div>'+
				'.(425661254)'+
				'</li>'+
				'<li class="selected" title="wannna(905536187)">'+
				'<div class="setting_frdhead"><img src="img/userhead5_80.jpg"/></div>'+
				'wannna(905536187)'+
				'</li>'+
				
				'</ul>'+
				'</li>'+*/
				'</ul>'+
				'</div>'+
				/*'<div class="simplescrollframe">'+
				'<div class="scroll_topstep"><div class="scroll_topstepbtn"></div></div>'+
				'<div class="scroll_scrollbar"><div class="scroll_scrollblock"></div></div>'+
				'<div class="scroll_bottomstep"><div class="scroll_bottomstepbtn"></div></div>'+
				'</div>'+
				*/
				'</div>'+
				'<div class="setting_remindfrdlist theme_color_'+id+'">'+
				'<div class="setting_subwindowglass"></div>'+
				'<div class="setting_remindfrdlistcnt">'+
				'<ul class="setting_remindfrdlistcntpage">'+

				/*
				'<li class="normal">'+
				'<div class="setting_frdhead"><img src="img/userhead4_72.png"/></div>'+
				'.(425661254)'+
				'<div class="setting_defrdframe"><div class="setting_delthisfrd"><img src="img/SelectContact/deleteicon.png"/></div></div>'+
				'</li>'+
				'<li class="selected">'+
				'<div class="setting_frdhead"><img src="img/userhead5_80.jpg"/></div>'+
				'wannna(905536187)'+
				'<div class="setting_defrdframe"><div class="setting_delthisfrd"><img src="img/SelectContact/deleteicon.png"/></div></div>'+
				'</li>'+
				'<li class="normal">'+
				'<div class="setting_frdhead"><img src="img/userhead4_72.png"/></div>'+
				'.(425661254)'+
				'<div class="setting_defrdframe"><div class="setting_delthisfrd"><img src="img/SelectContact/deleteicon.png"/></div></div>'+
				'</li>'+
				'<li class="selected">'+
				'<div class="setting_frdhead"><img src="img/userhead5_80.jpg"/></div>'+
				'wannna(905536187)'+
				'<div class="setting_defrdframe"><div class="setting_delthisfrd"><img src="img/SelectContact/deleteicon.png"/></div></div>'+
				'</li>'+
				'<li class="normal">'+
				'<div class="setting_frdhead"><img src="img/userhead4_72.png"/></div>'+
				'.(425661254)'+
				'<div class="setting_defrdframe"><div class="setting_delthisfrd"><img src="img/SelectContact/deleteicon.png"/></div></div>'+
				'</li>'+
				'<li class="selected">'+
				'<div class="setting_frdhead"><img src="img/userhead5_80.jpg"/></div>'+
				'wannna(905536187)'+
				'<div class="setting_defrdframe"><div class="setting_delthisfrd"><img src="img/SelectContact/deleteicon.png"/></div></div>'+
				'</li>'+
				'<li class="normal">'+
				'<div class="setting_frdhead"><img src="img/userhead4_72.png"/></div>'+
				'.(425661254)'+
				'<div class="setting_defrdframe"><div class="setting_delthisfrd"><img src="img/SelectContact/deleteicon.png"/></div></div>'+
				'</li>'+
				'<li class="normal">'+
				'<div class="setting_frdhead"><img src="img/userhead4_72.png"/></div>'+
				'.(425661254)'+
				'<div class="setting_defrdframe"><div class="setting_delthisfrd"><img src="img/SelectContact/deleteicon.png"/></div></div>'+
				'</li>'+
				'<li class="normal">'+
				'<div class="setting_frdhead"><img src="img/userhead4_72.png"/></div>'+
				'.(425661254)'+
				'<div class="setting_defrdframe"><div class="setting_delthisfrd"><img src="img/SelectContact/deleteicon.png"/></div></div>'+
				'</li>'+
					'<li class="normal">'+
				'<div class="setting_frdhead"><img src="img/userhead4_72.png"/></div>'+
				'.(425661254)'+
				'<div class="setting_defrdframe"><div class="setting_delthisfrd"><img src="img/SelectContact/deleteicon.png"/></div></div>'+
				'</li>'+
					
				*/
				
				

				remindfrd+
				'</ul>'+
				'</div>'+
				/*'<div class="simplescrollframe">'+
				'<div class="scroll_topstep"><div class="scroll_topstepbtn"></div></div>'+
				'<div class="scroll_scrollbar"><div class="scroll_scrollblock"></div></div>'+
				'<div class="scroll_bottomstep"><div class="scroll_bottomstepbtn"></div></div>'+
				'</div>'+
				*/
				'</div>'+

				'<div class="setting_searchcontactresult theme_color_'+id+'">'+
				'<div class="setting_subwindowglass"></div>'+
				'<div class="setting_searchcontactresultcnt">'+
				'<ul class="setting_searchcontactresultcntpage">'+
				/*
				'<li class="title">好友<img class="splite_line" src="img/SelectContact/splite_line.png"/></li>'+
				'<li class="normal">'+
				'<div class="setting_frdhead"><img src="img/wanna.jpg"/></div>'+
				'<font color="red">G</font>iGi(2072626970)'+
				'<div class="setting_defrdframe"><div class="setting_delthisfrd"><img src="img/SelectContact/deleteicon.png"/></div></div>'+
				'</li>'+
				*/
				'</ul>'+
				'</div>'+
				/*'<div class="simplescrollframe">'+
				'<div class="scroll_topstep"><div class="scroll_topstepbtn"></div></div>'+
				'<div class="scrollbar"><div class="scrollblock"></div></div>'+
				'<div class="scroll_bottomstep"><div class="scroll_bottomstepbtn"></div></div>'+
				'</div>'+
				*/
				'</div>'+
				'<div class="clear"></div>';
			}
			else
			{
				return false;
			}
			if($('body').find("#setting_addreplylist_"+id).length>0||$('body').find("#setting_editreplylist_"+id).length>0||$('body').find("#setting_choiceremindcontact_"+id).length>0)
			{
				return false;
			}
			var html=
			'<div class="setting_subwindow '+classname+'" id="'+classname+'_'+id+'">'+
			'<div class="setting_subwindowbar">'+
			'<div class="bar_color theme_color_'+id+' theme_op_'+id+'"></div>'+
			'<div class="bar_content">'+
			'<div class="setting_barname"><img src="img/all_logo16-xp-2014.ico"/>'+title+'</div>'+
			'<div class="setting_subwindowclose"></div>'+
			'<div class="clear"></div>'+
			'</div></div>'+
			'<div class="setting_subwindowcnt '+cntclass+'">'+
			ext+
			'</div>'+
			'<div class="setting_subwindowfoot theme_color_'+id+'">'+
			'<div class="setting_subwindowfootglass"></div>'+
			'<div class="setting_subwindowfootcnt">'+
			'<div class="setting_subwindowbutton setting_subcancel">取消</div>'+
			'<div class="setting_subwindowbutton setting_subconfirm '+(type=="choiceremindcontact"?'disabled':'')+'">确定</div>'+
			'<div class="clear"></div>'+
			'</div>'+
			'</div>'+
			'</div>';
			


			$('body').append(html);

			//设置顶部bar色
			var th=usr.getpro(id,'theme');
			console.log(id+','+th);
			$('#'+classname+'_'+id+' .theme_color_'+id).css('background',th['bgcolor']);
			$('#'+classname+'_'+id+' .theme_op_'+id).css("filter","alpha(opacity="+th['skinopacity']+")").css("-moz-opacity",(th['skinopacity']/100)).css("opacity",(th['skinopacity']/100));


			$("#setting_board_"+id).append("<div class='setting_displayboard'></div>");
			
			$("#setting_board_"+id+" .setting_displayboard").click(function()
			{
				if($('body').find("#setting_addreplylist_"+id).length>0||$('body').find("#setting_editreplylist_"+id).length>0||$('body').find("#setting_choiceremindcontact_"+id).length>0)
				{
					if($('body').find("#setting_addreplylist_"+id).length>0)
					{
						$('body').find("#setting_addreplylist_"+id+" textarea")[0].focus();
					}
					else if($('body').find("#setting_editreplylist_"+id).length>0)
					{
						$('body').find("#setting_editreplylist_"+id+" textarea")[0].focus();
					}
					
					$("#goading")[0].play();
				}
			}).dblclick(function()
			{
				$("#goading")[0].play();
			});
			if(type=="choiceremindcontact")
			{	
				var p=$("#setting_choiceremindcontact_"+id);
				Scroll.reset(p.find(".setting_frdlist"),p.find(".setting_frdlistcnt"),p.find(".setting_frdlistcntpage"));
				Scroll.reset(p.find(".setting_remindfrdlist"),p.find(".setting_remindfrdlistcnt"),p.find(".setting_remindfrdlistcntpage"));
				
			}
		},
		bind:function(id,type,from)
		{
			drag($(".setting_subwindow"));
			$(".setting_subwindowclose").click(function()
			{
				$(this).parents(".setting_subwindow").remove();
				tempval.getone(id,'sandbox','frdolremind_list')==false?"":tempval.setone(id,'sandbox','frdolremind_list',"");
				$("#setting_board_"+id+" .setting_displayboard").remove();
			});

			$(".setting_subcancel").click(function()
			{
				$(this).parents(".setting_subwindow").remove();
				tempval.getone(id,'sandbox','frdolremind_list')==false?"":tempval.setone(id,'sandbox','frdolremind_list',"");
				$("#setting_board_"+id+" .setting_displayboard").remove();
			});

				
			$(".setting_frdlist").mouseover(function()
			{
				Scroll.set($(this),$(this).find(".setting_frdlistcnt"),$(this).find(".setting_frdlistcntpage"));
			});
			$(".setting_remindfrdlist").mouseover(function()
			{
				Scroll.set($(this),$(this).find(".setting_remindfrdlistcnt"),$(this).find(".setting_remindfrdlistcntpage"));
			});
			$(".setting_searchcontactresult").mouseover(function()
			{
				Scroll.set($(this),$(this).find(".setting_searchcontactresultcnt"),$(this).find(".setting_searchcontactresultcntpage"));
			});




			
			//确定按钮，按需设置
			$(".setting_subconfirm").click(function()
			{
				if($(this).hasClass("disabled"))
				{
					return false;
				}
				var parent=$(this).parents(".setting_subwindow");
				var pname=parent.attr("class").replace("setting_subwindow setting_","");
				var idname=parent.attr("id");
				if(pname=="addreplylist")
				{
					var id=idname.replace("setting_addreplylist_","");
					var str=$.trim(parent.find("textarea").val());
					if(str=="")
					{
						parent.find("textarea")[0].focus();
						return false;
					}
					var cntboard=$("#setting_board_"+id+" .setting_window_autorely .setting_autorely_cntboard");
					var ul=cntboard.find(".setting_autorely_cntpage");
					var index=ul.find("li").length+1;
					var addhtml='<li class="setting_autorely_cntli">'+index+'<span class="autorely_cnt">'+str+'</span></li>';
					ul.append(addhtml);
					
					var replystr=$.trim(tempval.getone(id,'userset','autoreply_text')==false?usr.getpro(id,'setting','autoreply_text'):tempval.getone(id,'userset','autoreply_text'));
					replystr=replystr==""?str:replystr+";"+str;
					tempval.setone(id,'userset','autoreply_text',replystr);

					Scroll.reset(cntboard,cntboard.find(".setting_autorely_cnt"),cntboard.find(".setting_autorely_cntpage"));
					bind();
					$("#setting_board_"+id+" .setting_displayboard").remove();
				}
				else if(pname=="editreplylist")
				{

					var id=idname.replace("setting_editreplylist_","");
					var str=$.trim(parent.find("textarea").val());
					
					var cntboard=$("#setting_board_"+id+" .setting_window_autorely .setting_autorely_cntboard");
					if(from.str!=str)
					{
						
						var ul=cntboard.find(".setting_autorely_cntpage");
						
						ul.find(".setting_autorely_cntli").eq(from.index).html((from.index+1)+'<span class="autorely_cnt">'+str+'</span></li>');
						
						var replystr=$.trim(tempval.getone(id,'userset','autoreply_text')==false?usr.getpro(id,'setting','autoreply_text'):tempval.getone(id,'userset','autoreply_text'));
						var replyarr=replystr.split(";");
						replyarr[from.index]=str;
						replystr='';
						for(var i=0;i<replyarr.length;i++)
						{
							replystr+=replyarr[i]+";";
						}
						replystr=replystr.substring(0,replystr.length-1);
						tempval.setone(id,'userset','autoreply_text',replystr);
					}
					$("#setting_board_"+id+" .setting_displayboard").remove();
					Scroll.reset(cntboard,cntboard.find(".setting_autorely_cnt"),cntboard.find(".setting_autorely_cntpage"));
				}
				else if(pname=="choiceremindcontact")
				{
					var id=idname.replace("setting_choiceremindcontact_","");
					//如果沙盒数组内frdolremind_list为空字符串，则添加为clear到useset数组对象的frdolremind_list中
					tempval.setone(id,'userset','frdolremind_list',(tempval.getone(id,'sandbox','frdolremind_list')==""||false)?"clear":tempval.getone(id,'sandbox','frdolremind_list'));
					tempval.setone(id,'sandbox','frdolremind_list',undefined);
					
					//console.log('确定后'+id);
					//console.log(tempval.getone(id,'sandbox','frdolremind_list'));
					
					//console.log(tempval.getone(id,'userset','frdolremind_list'));
					//console.log(tempval.getoneall(id,'sandbox'));
					//console.log(tempval.getoneall(id,'userset'));
					//console.log(tempval['sandbox']);
					//console.log(tempval['userset']);
					//console.log(tempval);
					//console.log("---------确定完毕-------");

					var setboard=$("#setting_board_"+id);
					setboard.find(".setting_displayboard").remove();

					var set_remindfrdstr='';
					var remindlist=$.trim(tempval.getone(id,'userset','frdolremind_list'));
					
					var remindlistarr=(remindlist=="clear"||remindlist.length<=0)?false:remindlist.split(';');
					
					if(remindlistarr)
					{
						for(var i=0;i<remindlistarr.length;i++)
						{
							var f=usr.getaother(id,remindlistarr[i]);
							set_remindfrdstr+='<li name="setting_setolremindineedli_frd" fid="'+remindlistarr[i]+'"><div class="setting_frdhead"><img src="'+f.img30+'"/></div>'+(f.frdname==""?f.name:f.frdname)+'('+f.account+')'+'<div class="setting_delaremindfrd"></div></li>';
						}
					}
					
					setboard.find(".setting_setolremindineedpage").html("").append(set_remindfrdstr);


					Scroll.reset(setboard.find(".setting_setolremindineed"),setboard.find(".setting_setolremindineedcnt"),setboard.find(".setting_setolremindineedpage"));

					/*已设置提醒好友的列表鼠标移上移出事件*/
					$("li[name='setting_setolremindineedli_frd']").mouseover(function()
					{
						$(this).addClass('theme_color');
					}).mouseout(function()
					{
						$(this).removeClass('theme_color');
					});
					$(".setting_delaremindfrd").click(function()
					{
						var id=$(this).parents(".setting_board").attr("id").replace("setting_board_","");
						var p=$(this).parent("li[name='setting_setolremindineedli_frd']");
						var board=p.parents(".setting_setolremindineed");
						var fid=p.attr("fid");

						var remindfrdarr=tempval.getone(id,'userset','frdolremind_list');
						if(remindfrdarr.length<=0||remindfrdarr=="clear")
						{
							return;
						}
						remindfrdarr=remindfrdarr.split(';')
						for (var i=0;i<remindfrdarr.length;i++)
						{
							if(parseInt(remindfrdarr[i])==parseInt(fid))
							{
								remindfrdarr.remove(i);
							}
						}
						var remindfrdstr=$.trim(remindfrdarr.join(';'));
						
						remindfrdstr=remindfrdstr.length<=0?'clear':remindfrdstr;

						tempval.setone(id,'userset','frdolremind_list',remindfrdstr);
						p.remove();

						Scroll.reset(board,board.find(".setting_setolremindineedcnt"),board.find(".setting_setolremindineedpage"));

					});
					
					
				}






				parent.remove();

			});

			
			if(type=="choiceremindcontact")
			{

				//好友分组中的组名点击事件
				$(".setting_grpname").click(function(e)
				{	
					//如果点击的是“添加全组按钮”，则添加整个分组
					if($(e.target)[0]==$(this).find(".setting_addthisgrp")[0])
					{
						//console.log("添加全组");
						var id=$(this).parents(".setting_choiceremindcontact").attr("id").replace("setting_choiceremindcontact_","");
						var gid=parseInt($(this).parents(".setting_grp").attr("gid"));
						var frds=usr.getpro(id,'frd');
						var fobj=[];//保存此组的所有好友信息
						for(var i=0;i<frds.length;i++)
						{
							if(parseInt(frds[i]['gid'])==gid)
							{
								//frdgrpid.push(frds.id);
								fobj.push(frds[i]);
								continue;
							}
						}

						if(fobj.length<=0)
						{
							return false;
						}
						
						var remindboard=$(this).parents(".setting_choiceremindcontactboard").find(".setting_remindfrdlist");
						var remindpage=remindboard.find(".setting_remindfrdlistcntpage");

						for(var k=0;k<fobj.length;k++)
						{
							
							var remindfrdstr=$.trim(tempval.getone(id,'sandbox','frdolremind_list'));
							var remindfrdarr=remindfrdstr.split(";");

							if($.inArray(fobj[k].id,remindfrdarr)<0)
							{
								tempval.setone(id,'sandbox','frdolremind_list',(remindfrdstr==""?fobj[k].id:(remindfrdstr+";"+fobj[k].id)));
								remindpage.append('<li class="normal" name="setting_remindfrd_frd" fid="'+fobj[k].id+'"><div class="setting_frdhead"><img src="'+fobj[k].img30+'"/></div>'+(fobj[k].frdname==""?fobj[k].name:fobj[k].frdname)+'<div class="setting_defrdframe"><div class="setting_delthisfrd"><img src="img/SelectContact/deleteicon.png"/></div></div></li>');
							
							}
							
							continue;
							
						}
						
						//沙盒数组与临时数组对比，如果frdolremind_list有变化，则启用确定按钮
						(tempval.getone(id,'sandbox','frdolremind_list').split(';').sort().toString()==tempval.getone(id,'userset','frdolremind_list').split(';').sort().toString())?($(this).parents(".setting_choiceremindcontact").find(".setting_subconfirm").addClass("disabled")):($(this).parents(".setting_choiceremindcontact").find(".setting_subconfirm").removeClass("disabled"));
						//console.log(tempval.getone(id,'sandbox','frdolremind_list').split(';').sort().toString()==tempval.getone(id,'userset','frdolremind_list').split(';').sort().toString());

						afterbind_remindfrd();
						Scroll.reset(remindboard,remindboard.find(".setting_remindfrdlistcnt"),remindpage);
							
						//console.log($.trim(tempval.getone(id,'sandbox','frdolremind_list')));
						return false;
					}


					var parent=$(this).parents(".setting_frdlistcntpage");
					
					parent.find(".setting_grpname").removeClass('sel').addClass('nor');
					parent.find("li[name='setting_grp_frd']").removeClass('selected').addClass('normal');

					if($(this).hasClass('nor'))
					{
						$(this).removeClass('nor').addClass('sel');
					}
					
					var grp=$(this).parent(".setting_grp");
					if(grp.hasClass('show'))
					{
						grp.removeClass('show').addClass('hide');
					}
					else
					{
						grp.removeClass('hide').addClass('show');
					}
					Scroll.reset($(this).parents(".setting_frdlist"),$(this).parents(".setting_frdlistcnt"),$(this).parents(".setting_frdlistcntpage"));

				});
				
				//好友分组中的好友点击事件
				$(".setting_frdlistcntpage li[name='setting_grp_frd']").click(function()
				{
					var id=$(this).parents(".setting_choiceremindcontact").attr("id").replace("setting_choiceremindcontact_","");
					var parent=$(this).parents(".setting_frdlistcntpage");
					parent.find(".setting_grpname").removeClass('sel').addClass('nor');
					parent.find("li[name='setting_grp_frd']").removeClass('selected').addClass('normal');

					$(this).removeClass('normal').addClass('selected');

					//添加本条目到setting_remindfrdlist面板
					var fid=$(this).attr("fid");

					var remindfrdstr=$.trim(tempval.getone(id,'sandbox','frdolremind_list'));
					var remindfrdarr=remindfrdstr.split(";");
					
					if(remindfrdarr.length<=0||$.inArray(fid,remindfrdarr)<0)
					{
						var remindboard=$(this).parents(".setting_choiceremindcontactboard").find(".setting_remindfrdlist");
						var remindpage=remindboard.find(".setting_remindfrdlistcntpage");

						var fobj=usr.getaother(id,fid);
						remindpage.append('<li class="normal" name="setting_remindfrd_frd" fid="'+fid+'"><div class="setting_frdhead"><img src="'+fobj.img30+'"/></div>'+(fobj.frdname==""?fobj.name:fobj.frdname)+'<div class="setting_defrdframe"><div class="setting_delthisfrd"><img src="img/SelectContact/deleteicon.png"/></div></div></li>');
						
						remindfrdstr=remindfrdstr==""?fid:remindfrdstr+";"+fid;
						tempval.setone(id,'sandbox','frdolremind_list',remindfrdstr);
						afterbind_remindfrd();
						Scroll.reset(remindboard,remindboard.find(".setting_remindfrdlistcnt"),remindpage);
					}
					//沙盒数组与临时数组对比，如果frdolremind_list有变化，则启用确定按钮
					(tempval.getone(id,'sandbox','frdolremind_list').split(';').sort().toString()==tempval.getone(id,'userset','frdolremind_list').split(';').sort().toString())?($(this).parents(".setting_choiceremindcontact").find(".setting_subconfirm").addClass("disabled")):($(this).parents(".setting_choiceremindcontact").find(".setting_subconfirm").removeClass("disabled"));
					//console.log(tempval.getone(id,'sandbox','frdolremind_list').split(';').sort().toString()==tempval.getone(id,'userset','frdolremind_list').split(';').sort().toString());

				});

				//输入搜索框事件
				$(".setting_searchcontact").focus(function()
				{
					if($.trim($(this).val())=='输入查找关键字')
					{
						$(this).val("");
						$(this).css('color',"black");
						
					}
				}).keyup(function()
				{

					var val=$.trim($(this).val());
					var rsboard=$(this).parents(".setting_choiceremindcontactboard").find(".setting_searchcontactresult");
					rsboard.find(".setting_searchcontactresultcntpage").html("");
					if(val=='')
					{
						rsboard.css("display","none");
					}
					else
					{
						$(this).parents(".setting_choiceremindcontactboard").find(".setting_searchcontactclear").css("display","block");
						var uid=$(this).parents(".setting_choiceremindcontact").attr("id").replace("setting_choiceremindcontact_","");
						var frds=usr.getpro(uid,'frd');
						
						var rs=[];

						for(var i=0;i<frds.length;i++)
						{
							var flag=0;
							var frdli='';
							if(frds[i].frdname.indexOf(val)>=0)
							{
								flag=1;
							}
							if(frds[i].name.indexOf(val)>=0)
							{
								flag=1;
							}
							if(frds[i].account.indexOf(val)>=0)
							{
								flag=1;
							}

							if(flag)
							{
								rs.push(frds[i]);
							}
							
						}
						if(rs.length<=0)
						{
							rsboard.find(".setting_searchcontactresultcntpage").append('<li class="title">没有找到您需要搜索的联系人</li>');
						}
						else
						{
							
							var html='<li class="title">好友<img class="splite_line" src="img/SelectContact/splite_line.png"/></li>';
							for(var i=0;i<rs.length;i++)
							{
								var flag=0;
								var name=null;

								if(rs[i].frdname=="")
								{
									name=rs[i].name;
									
								}
								else
								{
									name=rs[i].frdname;
									flag=1;
								}
								var ext='';
								if(flag)
								{
									ext=rs[i].name.indexOf(val)>=0?rs[i].name:'';
								}
								var keyword=name+'('+rs[i].account+')'+ext;
								keyword=keyword.replace(eval("/("+val+")/gi"),'<font color="red">$1</font>');
								html+='<li class="normal" fid="'+rs[i].id+'"><div class="setting_frdhead"><img src="'+rs[i].img30+'"/></div>'+keyword+'<div class="setting_defrdframe"><div class="setting_delthisfrd"><img src="img/SelectContact/deleteicon.png"/></div></div></li>';
							}
							
							rsboard.find(".setting_searchcontactresultcntpage").append(html);
							afterbind_searchfrd();
							Scroll.reset(rsboard,rsboard.find(".setting_searchcontactresultcnt"),rsboard.find(".setting_searchcontactresultcntpage"));
						}

						rsboard.css("display","block");
					}

				}).focusout(function()
				{
					if($.trim($(this).val())=='')
					{
						$(this).val("输入查找关键字");
						$(this).css('color',"#999");
						var p=$(this).parents(".setting_choiceremindcontactboard");
						p.find(".setting_searchcontactclear").css("display","none");
						p.find(".setting_searchcontactresult").css("display","none");
					}
				});
				
				//输入框文字清除按钮
				$(".setting_searchcontactclear").click(function()
				{
					var p=$(this).parents(".setting_choiceremindcontactboard");
					var input=p.find(".setting_searchcontact");
					input.css('color',"#999").val("输入查找关键字").blur();
					p.find(".setting_searchcontactresult").css("display","none");
					$(this).css("display","none");
				});



				

				afterbind_remindfrd();

				function afterbind_remindfrd()
				{
					$(".setting_delthisfrd").on('click',function()
					{
						var mother=$(this).parents(".setting_choiceremindcontact");
						var p=$(this).parents(".setting_remindfrdlist");
						var id=$(this).parents(".setting_choiceremindcontact").attr("id").replace("setting_choiceremindcontact_","");
						var fid=$(this).parents("li[name='setting_remindfrd_frd']").attr("fid");
						$(this).parents("li[name='setting_remindfrd_frd']").remove();

						var remindfrdstr=$.trim(tempval.getone(id,'sandbox','frdolremind_list'));
						if(remindfrdstr=="")
						{
							return false;
						}
						var remindfrdarr=remindfrdstr.split(";");
					
						for(var i=0;i<remindfrdarr.length;i++)
						{
							if(parseInt(remindfrdarr[i])==parseInt(fid))
							{
								remindfrdarr.remove(i);
								break;
							}
						}
						remindfrdstr=remindfrdarr.length==1?remindfrdarr[0]:remindfrdarr.join(";");
						
						tempval.setone(id,'sandbox','frdolremind_list',remindfrdstr);

						
						//沙盒数组与临时数组对比，如果frdolremind_list有变化，则启用确定按钮
						(tempval.getone(id,'sandbox','frdolremind_list').split(';').sort().toString()==tempval.getone(id,'userset','frdolremind_list').split(';').sort().toString())?(mother.find(".setting_subconfirm").addClass("disabled")):(mother.find(".setting_subconfirm").removeClass("disabled"));
						//console.log(tempval.getone(id,'sandbox','frdolremind_list').split(';').sort().toString()==tempval.getone(id,'userset','frdolremind_list').split(';').sort().toString());

						Scroll.reset(p,p.find(".setting_remindfrdlistcnt"),p.find(".setting_remindfrdlistcntpage"));
						/*console.log('删除单条项目后sanbox↓');
						console.log(tempval.getoneall(id,'sandbox'));
						console.log(tempval.getone(id,'sandbox','frdolremind_list'));
						console.log('删除单条项目后userset↓');
						console.log(tempval.getoneall(id,'userset'));
						console.log(tempval.getone(id,'userset','frdolremind_list'));



						console.log(tempval['sandbox']);
					console.log(tempval['userset']);
					console.log(tempval);
						*/
					});


					$(".setting_remindfrdlistcntpage>li").click(function()
					{
						if($(this).hasClass("selected"))
						{
							return false;
						}
						$(this).siblings('.selected').removeClass('selected').addClass('normal');
						$(this).removeClass('normal').addClass('selected');
					});
				}

			}

			function afterbind_searchfrd()
			{
				//搜索列表点击事件
				$(".setting_searchcontactresultcntpage>li").click(function()
				{
					if($(this).attr("class")=="title")
					{
						return;
					}
					var id=$(this).parents(".setting_choiceremindcontact").attr("id").replace("setting_choiceremindcontact_","");
					
					$(this).siblings(".selected").removeClass('selected').addClass('normal');

					$(this).removeClass('normal').addClass('selected');

					//添加本条目到setting_remindfrdlist面板
					var fid=$(this).attr("fid");

					var remindfrdstr=$.trim(tempval.getone(id,'sandbox','frdolremind_list'));
					var remindfrdarr=remindfrdstr.split(";");
					
					if(remindfrdarr.length<=0||$.inArray(fid,remindfrdarr)<0)
					{
						var remindboard=$(this).parents(".setting_choiceremindcontactboard").find(".setting_remindfrdlist");
						var remindpage=remindboard.find(".setting_remindfrdlistcntpage");
						var fobj=usr.getaother(id,fid);
						remindpage.append('<li class="normal" name="setting_remindfrd_frd" fid="'+fid+'"><div class="setting_frdhead"><img src="'+fobj.img30+'"/></div>'+(fobj.frdname==""?fobj.name:fobj.frdname)+'<div class="setting_defrdframe"><div class="setting_delthisfrd"><img src="img/SelectContact/deleteicon.png"/></div></div></li>');
						
						remindfrdstr=remindfrdstr==""?fid:remindfrdstr+";"+fid;
						tempval.setone(id,'sandbox','frdolremind_list',remindfrdstr);
						afterbind_remindfrd();
						Scroll.reset(remindboard,remindboard.find(".setting_remindfrdlistcnt"),remindpage);
					}
					//沙盒数组与临时数组对比，如果frdolremind_list有变化，则启用确定按钮
					(tempval.getone(id,'sandbox','frdolremind_list').split(';').sort().toString()==tempval.getone(id,'userset','frdolremind_list').split(';').sort().toString())?($(this).parents(".setting_choiceremindcontact").find(".setting_subconfirm").addClass("disabled")):($(this).parents(".setting_choiceremindcontact").find(".setting_subconfirm").removeClass("disabled"));
					//console.log(tempval.getone(id,'sandbox','frdolremind_list').split(';').sort().toString()==tempval.getone(id,'userset','frdolremind_list').split(';').sort().toString());

				});
			}






			
		},
		

		
	};













	function resetScroll(obj)
	{
		var winy=obj.find(".setting_detail")[0].clientHeight;
		var pagey=obj.find(".setting_detail_page")[0].offsetHeight;

		var pagetop=parseInt(obj.find(".setting_detail_page").css('top').replace('px','').replace('-',''));

		//滚动块长度计算   
		/*
			 显示高度      滚动滑块长度
			---------- == --------------
			页面总高度     滚动条总长度(显示高度-上下按钮高度)

			得出 【滑块长度=显示高度*(显示高度-上下按钮高度)/页面总高度】

		*/

		var blockhe=winy*(winy-24)/pagey;

		//滚动块平移高度计算
		/*
			页面的平移高度(offsettop or top)     滑块平移高度
			-------------------------------- == ----------------
			         页面总高度                  滚动条总长度(显示高度-上下按钮高度)

			得出  【滑块平移高度=页面的平移高度*(显示高度-上下按钮高度)/页面总高度】

			或    【滑块平移高度=页面的平移高度/页面总高度 *(显示高度-上下按钮高度)】
					即已滚去百分比*滚动条总长度
		*/

		var blocktop=pagetop*(winy-24)/pagey;

		
		obj.find(".setting_scrollblock").css("height",blockhe+"px").css("top",blocktop+"px");
		var block=obj.find(".setting_scrollblock");
	}


	function setScroll(obj)
	{
		resetScroll(obj);

		if(document.addEventListener){
			document.addEventListener('DOMMouseScroll',scrollselect,false);
		} 
		window.onmousewheel=document.onmousewheel=scrollselect;
			
		function scrollselect(e)
		{
			e=e||window.event;
			if(e.wheelDelta)
			{
				//console.log("wheelDelta="+e.wheelDelta);
				scroll(e.wheelDelta,'a');
			}
			else if(e.detail,'b')
			{
				//console.log("detail="+e.detail);
				scroll(e.detail,'b');
			}
		}

		function scroll(x,flag)
		{
			/*if(Math.abs(x)==120)
			{*/
				var step=0;
				
				var blockh=obj.find(".setting_scrollblock")[0].offsetHeight;
				var blockt=obj.find(".setting_scrollblock").css("top").replace("px","");
				var barh=obj.find(".setting_scrollbar")[0].offsetHeight;

				//已经走过的高度
				var runed=blockt;
				//剩余高度
				var left=barh-runed;

				//滚动速率根据滚轮长度变化
				var steptimes=Math.round(blockh/50);
				
				if(x>0&&flag=='a'||x<0&&flag=='b')
				{
					step=-1*steptimes*0.01;
				}
				else if(x<0&&flag=='a'||x>0&&flag=='b')
				{
					step=1*steptimes*0.01;
				}
				var per=runed/barh+step;
					
				//console.log("per="+per);
				if(per<0)
				{
					per=0;
					//get history
				}
				if(per>=1)
				{
					per=1;
				}
				var go=per*barh;
				if(go>=(barh-blockh))
				{
					go=barh-blockh;
				}
				var topover=-per*obj.find(".setting_detail_page")[0].offsetHeight;
				if(-topover>=obj.find(".setting_detail_page")[0].offsetHeight)
				{
					topover=-obj.find(".setting_detail_page")[0].offsetHeight
				}
				
				//console.log('per='+per);
				//console.log('go='+go);
				//console.log('topover='+topover);
				//console.log();
				obj.find(".setting_scrollblock").css('top',go+'px');
				obj.find(".setting_detail_page").css('top',topover+'px');


				/*设置滚动到的位置*/
				var list=obj.find(".setting_detail_list");
				for(var i=0;i<list.length;i++)
				{
					var listtop=list[i].offsetTop-parseInt(obj.find(".setting_detail_page").css('top').replace('px','').replace('-',''));
					if(listtop<10&&listtop>-list[i].offsetHeight)
					{

						obj.find(".setting_list_title").removeClass("now");
						var cls=list.eq(i).attr("class").replace("setting_detail_list setting_detail_","");
						//console.log('cls'+cls);
						obj.find(".setting_list_"+cls).addClass("now");
				
						break;
					}
				}

				

		/*	}
			else if(Math.abs(x)==3)
			{

			}

		*/
		}




	}







	function ajaxset(uid,attr,mod,callback)
	{
		var dt=null;
		if(mod=="one")
		{
			dt='t=set&&n='+attr.name+'&&v='+attr.val+'&&u='+uid+"&&m="+mod;
		}
		else if(mod=="part")
		{
			var str='';
			for(var i in attr)
			{
				str+=i+"-"+attr[i]+",";
			}
			str=str.substring(0,str.length-1);
			dt='t=set&&v='+str+'&&u='+uid+"&&m="+mod;
		}
		var o={
		url:'action/userconfig.php',
		type:'POST',
		data:dt,
		success:callback,
		};
		$.ajax(o);
	}

	
	





}



